本文整理汇总了Java中com.sun.corba.se.impl.util.JDKBridge.loadClass方法的典型用法代码示例。如果您正苦于以下问题:Java JDKBridge.loadClass方法的具体用法?Java JDKBridge.loadClass怎么用?Java JDKBridge.loadClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.corba.se.impl.util.JDKBridge
的用法示例。
在下文中一共展示了JDKBridge.loadClass方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: readResolve
import com.sun.corba.se.impl.util.JDKBridge; //导入方法依赖的package包/类
public Object readResolve()
{
String repositoryId = ior.getRepositoryId() ;
String cname = RepositoryId.cache.getId( repositoryId ).getClassName() ;
Class cls = null ;
try {
cls = JDKBridge.loadClass( cname, null, null ) ;
} catch (ClassNotFoundException exc) {
// XXX log this
}
PresentationManager pm =
com.sun.corba.se.spi.orb.ORB.getPresentationManager() ;
PresentationManager.ClassData classData = pm.getClassData( cls ) ;
InvocationHandlerFactoryImpl ihfactory =
(InvocationHandlerFactoryImpl)classData.getInvocationHandlerFactory() ;
return ihfactory.getInvocationHandler( this ) ;
}
示例2: loadClass
import com.sun.corba.se.impl.util.JDKBridge; //导入方法依赖的package包/类
/**
* Returns a class instance for the specified class.
* @param className the name of the class.
* @param remoteCodebase a space-separated list of URLs at which
* the class might be found. May be null.
* @param loadingContext a class whose ClassLoader may be used to
* load the class if all other methods fail.
* @return the <code>Class</code> object representing the loaded class.
* @exception ClassNotFoundException if class cannot be loaded.
*/
public Class loadClass( String className, String remoteCodebase,
ClassLoader loader) throws ClassNotFoundException
{
return JDKBridge.loadClass(className,remoteCodebase,loader);
}
示例3: loadClass
import com.sun.corba.se.impl.util.JDKBridge; //导入方法依赖的package包/类
/**
* Returns a class instance for the specified class.
* @param className the name of the class.
* @param remoteCodebase a space-separated list of URLs at which
* the class might be found. May be null.
* @param loader a class whose ClassLoader may be used to
* load the class if all other methods fail.
* @return the {@code Class} object representing the loaded class.
* @exception ClassNotFoundException if class cannot be loaded.
*/
public Class loadClass( String className, String remoteCodebase,
ClassLoader loader) throws ClassNotFoundException
{
return JDKBridge.loadClass(className,remoteCodebase,loader);
}