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


Java JDKBridge类代码示例

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


JDKBridge类属于com.sun.corba.se.impl.util包,在下文中一共展示了JDKBridge类的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 ) ;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:DynamicStubImpl.java

示例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);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:Util.java

示例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);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:Util.java


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