/** * Returns a class instance for the specified class. * * @param className * the name of the class * @return the <code>Class</code> object representing the loaded class. * @exception throws ClassNotFoundException if class cannot be loaded. */ public static Class<?> loadClass(String className) throws ClassNotFoundException { return loadClass(className, null, null); }
return loadClassM(className, remoteCodebase, useCodebaseOnly); return loadClassM(className, remoteCodebase, useCodebaseOnly);
return loadClassM(className, remoteCodebase, useCodebaseOnly); return loadClassM(className, remoteCodebase, useCodebaseOnly);
/** * Returns a class instance for the specified class. * * @param className * the name of the class * @return the <code>Class</code> object representing the loaded class. * @exception throws ClassNotFoundException if class cannot be loaded. */ public static Class<?> loadClass(String className) throws ClassNotFoundException { return loadClass(className, null, null); }
/** * Returns a class instance for the specified class. * * @param className * the name of the class * @param remoteCodebase * a space-separated array of urls at which the class might be found. May be null. * @return the <code>Class</code> object representing the loaded class. * @exception throws ClassNotFoundException if class cannot be loaded. */ public static Class<?> loadClass(String className, String remoteCodebase) throws ClassNotFoundException { return loadClass(className, remoteCodebase, null); }
/** * Returns a class instance for the specified class. * * @param className * the name of the class * @param remoteCodebase * a space-separated array of urls at which the class might be found. May be null. * @return the <code>Class</code> object representing the loaded class. * @exception throws ClassNotFoundException if class cannot be loaded. */ public static Class<?> loadClass(String className, String remoteCodebase) throws ClassNotFoundException { return loadClass(className, remoteCodebase, null); }
/** * 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); }
/** * 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); }
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 = org.jboss.com.sun.corba.se.spi.orb.ORB.getPresentationManager(); PresentationManager.ClassData classData = pm.getClassData(cls); InvocationHandlerFactoryImpl ihfactory = (InvocationHandlerFactoryImpl) classData.getInvocationHandlerFactory(); return ihfactory.getInvocationHandler(this); } }
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 = org.jboss.com.sun.corba.se.spi.orb.ORB.getPresentationManager(); PresentationManager.ClassData classData = pm.getClassData(cls); InvocationHandlerFactoryImpl ihfactory = (InvocationHandlerFactoryImpl) classData.getInvocationHandlerFactory(); return ihfactory.getInvocationHandler(this); } }