本文整理汇总了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 ;
}
示例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 ;
}
示例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 ) ;
}
示例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 ;
}
示例5: getSelf
import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public DynamicStub getSelf()
{
return self ;
}
示例6: setProxy
import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public void setProxy( Proxy proxy )
{
((DynamicStubImpl)stub).setSelf( (DynamicStub)proxy ) ;
}
示例7: CustomCompositeInvocationHandlerImpl
import com.sun.corba.se.spi.presentation.rmi.DynamicStub; //导入依赖的package包/类
public CustomCompositeInvocationHandlerImpl( DynamicStub stub )
{
this.stub = stub ;
}