/** * Create a new LoaderRepositoryClassLoader * * @param urls the urls * @param parent the parent classloader */ protected RepositoryClassLoader(URL[] urls, ClassLoader parent) { super(urls, parent); this.parent = parent; // Check the blacklist mode String mode = ClassToStringAction.getProperty("org.jboss.mx.loading.blacklistMode", null); if( mode == null || mode.equalsIgnoreCase("HashSet") ) { classBlackList = Collections.synchronizedSet(new HashSet()); resourceBlackList = Collections.synchronizedSet(new HashSet()); } else if( mode.equalsIgnoreCase("SoftSet") ) { classBlackList = Collections.synchronizedSet(new SoftSet()); resourceBlackList = Collections.synchronizedSet(new SoftSet()); } }
/** * Create a new LoaderRepositoryClassLoader * * @param urls the urls * @param parent the parent classloader */ @SuppressWarnings("unchecked") protected RepositoryClassLoader(URL[] urls, ClassLoader parent) { super(urls, parent); this.parent = parent; // Check the blacklist mode String mode = ClassToStringAction.getProperty("org.jboss.mx.loading.blacklistMode", null); if( mode == null || mode.equalsIgnoreCase("HashSet") ) { classBlackList = Collections.synchronizedSet(new HashSet<String>()); resourceBlackList = Collections.synchronizedSet(new HashSet<String>()); } else if( mode.equalsIgnoreCase("SoftSet") ) { classBlackList = Collections.synchronizedSet(new SoftSet()); resourceBlackList = Collections.synchronizedSet(new SoftSet()); } }