当前位置: 首页>>代码示例>>Java>>正文


Java DynamicStub类代码示例

本文整理汇总了Java中com.sun.corba.se.spi.presentation.rmi.DynamicStub的典型用法代码示例。如果您正苦于以下问题:Java DynamicStub类的具体用法?Java DynamicStub怎么用?Java DynamicStub使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


DynamicStub类属于com.sun.corba.se.spi.presentation.rmi包,在下文中一共展示了DynamicStub类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: makeStub

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public org.omg.CORBA.Object makeStub()
{
    // Construct the dynamic proxy that implements this stub
    // using the composite handler
    InvocationHandlerFactory factory = classData.getInvocationHandlerFactory() ;
    LinkedInvocationHandler handler =
        (LinkedInvocationHandler)factory.getInvocationHandler() ;
    Class[] interfaces = factory.getProxyInterfaces() ;
    DynamicStub stub = (DynamicStub)Proxy.newProxyInstance( loader, interfaces,
        handler ) ;
    handler.setProxy( (Proxy)stub ) ;
    return stub ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:StubFactoryProxyImpl.java

示例2: InvocationHandlerFactoryImpl

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public InvocationHandlerFactoryImpl( PresentationManager pm,
    PresentationManager.ClassData classData )
{
    this.classData = classData ;
    this.pm = pm ;

    Class[] remoteInterfaces =
        classData.getIDLNameTranslator().getInterfaces() ;
    proxyInterfaces = new Class[ remoteInterfaces.length + 1 ] ;
    for (int ctr=0; ctr<remoteInterfaces.length; ctr++)
        proxyInterfaces[ctr] = remoteInterfaces[ctr] ;

    proxyInterfaces[remoteInterfaces.length] = DynamicStub.class ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:InvocationHandlerFactoryImpl.java

示例3: getInvocationHandler

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public InvocationHandler getInvocationHandler()
{
    final DynamicStub stub = new DynamicStubImpl(
        classData.getTypeIds() ) ;

    return getInvocationHandler( stub ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:InvocationHandlerFactoryImpl.java

示例4: setSelf

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public void setSelf( DynamicStub self )
{
    // XXX Should probably only allow this once.
    this.self = self ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:DynamicStubImpl.java

示例5: getSelf

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public DynamicStub getSelf()
{
    return self ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:DynamicStubImpl.java

示例6: setProxy

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public void setProxy( Proxy proxy )
{
    ((DynamicStubImpl)stub).setSelf( (DynamicStub)proxy ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:InvocationHandlerFactoryImpl.java

示例7: CustomCompositeInvocationHandlerImpl

import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public CustomCompositeInvocationHandlerImpl( DynamicStub stub )
{
    this.stub = stub ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:5,代码来源:InvocationHandlerFactoryImpl.java


注:本文中的com.sun.corba.se.spi.presentation.rmi.DynamicStub类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。