|
|||||||||||
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.UnifiedLoaderRepository
An obsolate implementation of the LoaderRepository interface
Nested Class Summary | |
static class |
UnifiedLoaderRepository.ReentrantLock
Deprecated. |
Field Summary |
Fields inherited from class org.jboss.mx.loading.LoaderRepository |
instance, loaders, nativeClassBySignature, translator |
Constructor Summary | |
UnifiedLoaderRepository()
Deprecated. |
Method Summary | |
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. |
Class |
findClass(String name)
Deprecated. 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. Obtain a listing of the URL for all UnifiedClassLoaders associated with the ServiceLibraries |
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. |
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 |
Constructor Detail |
public UnifiedLoaderRepository()
Method Detail |
public UnifiedClassLoader newClassLoader(URL url, boolean addToRepository) throws Exception
LoaderRepository
newClassLoader
in interface UnifiedLoaderRepositoryMBean
newClassLoader
in class LoaderRepository
url
- the URL to use for class loadingaddToRepository
- a flag indicating if the UCL should be added to
the repository
Exception
public UnifiedClassLoader newClassLoader(URL url, URL origURL, boolean addToRepository) throws Exception
LoaderRepository
newClassLoader
in interface UnifiedLoaderRepositoryMBean
newClassLoader
in class LoaderRepository
url
- 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
Exception
public Class loadClass(String name, boolean resolve, ClassLoader cl) throws ClassNotFoundException
loadClass
in class LoaderRepository
name
- resolve
- cl
-
ClassNotFoundException
public URL getResource(String name, ClassLoader cl)
getResource
in class LoaderRepository
name
- the resource namecl
- the requesting class loader
public void getResources(String name, ClassLoader cl, List urls)
getResources
in class LoaderRepository
name
- cl
- urls
- public Class findClass(String name)
public URL[] getURLs()
getURLs
in interface UnifiedLoaderRepositoryMBean
getURLs
in class LoaderRepository
public Class loadClass(String className) throws ClassNotFoundException
LoaderRepository
loadClass
in interface ClassLoaderRepository
loadClass
in class LoaderRepository
className
-
ClassNotFoundException
public Class loadClassWithout(ClassLoader loader, String className) throws ClassNotFoundException
LoaderRepository
loadClassWithout
in interface ClassLoaderRepository
loadClassWithout
in class LoaderRepository
loader
- className
-
ClassNotFoundException
public void addClassLoader(ClassLoader loader)
LoaderRepository
addClassLoader
in class LoaderRepository
public boolean addClassLoaderURL(ClassLoader cl, URL url)
LoaderRepository
addClassLoaderURL
in class LoaderRepository
cl
- url
- public void removeClassLoader(ClassLoader cl)
LoaderRepository
removeClassLoader
in interface UnifiedLoaderRepositoryMBean
removeClassLoader
in class LoaderRepository
cl
- public LoaderRepository registerClassLoader(UnifiedClassLoader ucl)
registerClassLoader
in interface UnifiedLoaderRepositoryMBean
ucl
- an UnifiedClassLoader
value
LoaderRepository
valuepublic LoaderRepository getInstance()
getInstance
in interface UnifiedLoaderRepositoryMBean
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
addNotificationListener
in interface NotificationBroadcaster
listener
- a NotificationListener
valuefilter
- a NotificationFilter
valuehandback
- an Object
value
IllegalArgumentException
- if an error occurspublic MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
getNotificationInfo
in interface NotificationBroadcaster
MBeanNotificationInfo
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
listener
- a NotificationListener
value
ListenerNotFoundException
- if an error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |