/** * Returns an instance of RMIClassLoaderImpl. * * @return an instance of RMIClassLoaderImpl */ public static RMIClassLoaderSpi getInstance() { if (instance == null) instance = new RMIClassLoaderImpl(); return instance; }
/** * @ar.org.fitc.spec_ref * */ public static RMIClassLoaderSpi getDefaultProviderInstance() { if (System.getSecurityManager() != null) { System.getSecurityManager().checkPermission( new RuntimePermission("setFactory")); } if (provider == null) { provider = new RMIDefaultClassLoaderSpi(); } return provider; }
public void testGetDefaultProvideInstance() { assertTrue(RMIClassLoader.getDefaultProviderInstance() instanceof RMIClassLoaderSpi); }