|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.loading.LoaderRepository
org.jboss.mx.loading.UnifiedLoaderRepository2
An obsolate implementation of the LoaderRepository interface
| Field Summary | |
static EDU.oswego.cs.dl.util.concurrent.ReentrantLock |
repositoryLock
Deprecated. |
| Fields inherited from class org.jboss.mx.loading.LoaderRepository |
instance, loaders, nativeClassBySignature, translator |
| Constructor Summary | |
UnifiedLoaderRepository2()
Deprecated. |
|
| Method Summary | |
static void |
acquire()
Deprecated. |
void |
addClassLoader(ClassLoader loader)
Deprecated. Add a class loader to the repository |
boolean |
addClassLoaderURL(ClassLoader cl,
URL url)
Deprecated. Update the set of URLs known to be associated with a previously added class loader. |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
Deprecated. addNotificationListener delegates to the broadcaster object we hold. |
static boolean |
attempt(long waitMS)
Deprecated. |
Class |
findClass(String name)
Deprecated. This is a utility method that iterates through the current class loaders and tries to find the given class name. |
LoaderRepository |
getInstance()
Deprecated. |
MBeanNotificationInfo[] |
getNotificationInfo()
Deprecated. Returns the notification metadata associated with the MBean. |
URL |
getResource(String name,
ClassLoader cl)
Deprecated. Loads a resource following the Unified ClassLoader architecture |
void |
getResources(String name,
ClassLoader cl,
List urls)
Deprecated. Not implemented |
URL[] |
getURLs()
Deprecated. This is a utility method a listing of the URL for all UnifiedClassLoaders associated with the repository. |
Class |
loadClass(String className)
Deprecated. Load the given class from the repository. |
Class |
loadClass(String name,
boolean resolve,
ClassLoader cl)
Deprecated. Loads a class following the Unified ClassLoader architecture. |
Class |
loadClassWithout(ClassLoader loader,
String className)
Deprecated. Not used. |
UnifiedClassLoader |
newClassLoader(URL url,
boolean addToRepository)
Deprecated. Create UnifiedClassLoader and optionally add it to the repository |
UnifiedClassLoader |
newClassLoader(URL url,
URL origURL,
boolean addToRepository)
Deprecated. Create UnifiedClassLoader and optionally add it to the repository |
LoaderRepository |
registerClassLoader(UnifiedClassLoader ucl)
Deprecated. This method provides an mbean-accessible way to add a UnifiedClassloader, and sends a notification when it is added. |
static void |
release()
Deprecated. |
void |
removeClassLoader(ClassLoader cl)
Deprecated. Remove a cladd loader from the repository. |
void |
removeNotificationListener(NotificationListener listener)
Deprecated. removeNotificationListener delegates to our broadcaster object |
| Methods inherited from class org.jboss.mx.loading.LoaderRepository |
getCachedClass, getDefaultLoaderRepository, getLoaders, getNativeClassForName, getTranslator, loadClassBefore, setTranslator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.mx.loading.UnifiedLoaderRepositoryMBean |
getTranslator, setTranslator |
| Field Detail |
public static final EDU.oswego.cs.dl.util.concurrent.ReentrantLock repositoryLock
| Constructor Detail |
public UnifiedLoaderRepository2()
| Method Detail |
public static boolean attempt(long waitMS)
public static void acquire()
public static void release()
public UnifiedClassLoader newClassLoader(URL url, boolean addToRepository) throws Exception
LoaderRepository
newClassLoader in interface UnifiedLoaderRepositoryMBeannewClassLoader in class LoaderRepositoryurl - the URL to use for class loadingaddToRepository - a flag indicating if the UCL should be added to
the repository
Exceptionpublic UnifiedClassLoader newClassLoader(URL url, URL origURL, boolean addToRepository) throws Exception
LoaderRepository
newClassLoader in interface UnifiedLoaderRepositoryMBeannewClassLoader in class LoaderRepositoryurl - the URL to use for class loadingorigURL - an orignal URL to use as the URL for the UCL CodeSource.
This is useful when the url is a local copy that is difficult to use for
security policy writing.addToRepository - a flag indicating if the UCL should be added to
the repository
Exceptionpublic Class loadClass(String name, boolean resolve, ClassLoader cl) throws ClassNotFoundException
loadClass in class LoaderRepositoryname - resolve - cl -
ClassNotFoundExceptionpublic URL getResource(String name, ClassLoader cl)
getResource in class LoaderRepositoryname - the resource namecl - the requesting class loader
public void getResources(String name, ClassLoader cl, List urls)
getResources in class LoaderRepositoryname - cl - urls - public URL[] getURLs()
getURLs in interface UnifiedLoaderRepositoryMBeangetURLs in class LoaderRepositorypublic Class loadClass(String className) throws ClassNotFoundException
LoaderRepository
loadClass in interface ClassLoaderRepositoryloadClass in class LoaderRepositoryclassName -
ClassNotFoundExceptionpublic Class findClass(String name)
public Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException
LoaderRepository
loadClassWithout in interface ClassLoaderRepositoryloadClassWithout in class LoaderRepositoryloader - className -
ClassNotFoundExceptionpublic void addClassLoader(ClassLoader loader)
LoaderRepository
addClassLoader in class LoaderRepositorypublic boolean addClassLoaderURL(ClassLoader cl, URL url)
LoaderRepository
addClassLoaderURL in class LoaderRepositorycl - url - public void removeClassLoader(ClassLoader cl)
LoaderRepository
removeClassLoader in interface UnifiedLoaderRepositoryMBeanremoveClassLoader in class LoaderRepositorycl - public LoaderRepository registerClassLoader(UnifiedClassLoader ucl)
registerClassLoader in interface UnifiedLoaderRepositoryMBeanucl - an UnifiedClassLoader value
LoaderRepository valuepublic LoaderRepository getInstance()
getInstance in interface UnifiedLoaderRepositoryMBeanpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener in interface NotificationBroadcasterlistener - a NotificationListener valuefilter - a NotificationFilter valuehandback - an Object value
IllegalArgumentException - if an error occurspublic MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
getNotificationInfo in interface NotificationBroadcasterMBeanNotificationInfopublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterlistener - a NotificationListener value
ListenerNotFoundException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||