本文整理汇总了Java中com.sun.corba.se.spi.orb.ORB.getPresentationManager方法的典型用法代码示例。如果您正苦于以下问题:Java ORB.getPresentationManager方法的具体用法?Java ORB.getPresentationManager怎么用?Java ORB.getPresentationManager使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.corba.se.spi.orb.ORB
的用法示例。
在下文中一共展示了ORB.getPresentationManager方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createStubFactory
import com.sun.corba.se.spi.orb.ORB; //导入方法依赖的package包/类
public PresentationManager.StubFactory createStubFactory(
String className, boolean isIDLStub, String remoteCodeBase,
Class expectedClass, ClassLoader classLoader)
{
Class cls = null ;
try {
cls = Util.loadClass( className, remoteCodeBase, classLoader ) ;
} catch (ClassNotFoundException exc) {
throw wrapper.classNotFound3(
CompletionStatus.COMPLETED_MAYBE, exc, className ) ;
}
PresentationManager pm = ORB.getPresentationManager() ;
if (IDLEntity.class.isAssignableFrom( cls ) &&
!Remote.class.isAssignableFrom( cls )) {
// IDL stubs must always use static factories.
PresentationManager.StubFactoryFactory sff =
pm.getStubFactoryFactory( false ) ;
PresentationManager.StubFactory sf =
sff.createStubFactory( className, true, remoteCodeBase,
expectedClass, classLoader ) ;
return sf ;
} else {
PresentationManager.ClassData classData = pm.getClassData( cls ) ;
return makeDynamicStubFactory( pm, classData, classLoader ) ;
}
}
示例2: getTie
import com.sun.corba.se.spi.orb.ORB; //导入方法依赖的package包/类
public Tie getTie( Class cls )
{
PresentationManager pm = ORB.getPresentationManager() ;
return new ReflectiveTie( pm, wrapper ) ;
}