站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jmx API Documentation 英文版文档

UnifiedLoaderRepository (JBoss/JMX API) - JBoss 3.2.7 jmx API Documentation 英文版文档


org.jboss.mx.loading
Class UnifiedLoaderRepository

java.lang.Object
  extended byorg.jboss.mx.loading.LoaderRepository
      extended byorg.jboss.mx.loading.UnifiedLoaderRepository
All Implemented Interfaces:
ClassLoaderRepository, NotificationBroadcaster, ServerConstants, UnifiedLoaderRepositoryMBean

Deprecated. Use the UnifiedLoaderRepository3 version

public class UnifiedLoaderRepository
extends LoaderRepository
implements NotificationBroadcaster, UnifiedLoaderRepositoryMBean

An obsolate implementation of the LoaderRepository interface

Version:
$Revision: 1.17.2.6 $ just a hint... xdoclet not really used
Author:
Marc Fleury, Ole Husgaard, Juha Lindfors., Simone Bordet.

Nested Class Summary
static class UnifiedLoaderRepository.ReentrantLock
          Deprecated.  
 
Field Summary
 
Fields inherited from class org.jboss.mx.loading.LoaderRepository
instance, loaders, nativeClassBySignature, translator
 
Fields inherited from interface org.jboss.mx.server.ServerConstants
CLASS_REMOVED, CLASSLOADER, CLASSLOADER_ADDED, CLASSLOADER_REMOVED, DEFAULT_DOMAIN, DEFAULT_LOADER_NAME, DEFAULT_LOADER_REPOSITORY_CLASS, DEFAULT_MBEAN_REGISTRY_CLASS, DEFAULT_MBEAN_SERVER_BUILDER_CLASS, DEFAULT_REQUIRED_MODELMBEAN_CLASS, DEFAULT_SCOPED_REPOSITORY_CLASS, DEFAULT_SCOPED_REPOSITORY_PARSER_CLASS, IMPLEMENTATION_NAME, IMPLEMENTATION_VENDOR, IMPLEMENTATION_VERSION, JMI_DOMAIN, LOADER_REPOSITORY_CLASS_PROPERTY, MBEAN_REGISTRY, MBEAN_REGISTRY_CLASS_PROPERTY, MBEAN_SERVER_BUILDER_CLASS_PROPERTY, MBEAN_SERVER_CONFIGURATION, MBEAN_SERVER_DELEGATE, OPTIMIZE_REFLECTED_DISPATCHER, REQUIRED_MODELMBEAN_CLASS_PROPERTY, SPECIFICATION_NAME, SPECIFICATION_VENDOR, SPECIFICATION_VERSION, UNIFIED_LOADER_REPOSITORY_CLASS
 
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

UnifiedLoaderRepository

public UnifiedLoaderRepository()
Deprecated. 
Method Detail

newClassLoader

public UnifiedClassLoader newClassLoader(URL url,
                                         boolean addToRepository)
                                  throws Exception
Deprecated. 
Description copied from class: LoaderRepository
Create UnifiedClassLoader and optionally add it to the repository

Specified by:
newClassLoader in interface UnifiedLoaderRepositoryMBean
Specified by:
newClassLoader in class LoaderRepository
Parameters:
url - the URL to use for class loading
addToRepository - a flag indicating if the UCL should be added to the repository
Returns:
the UCL instance
Throws:
Exception

newClassLoader

public UnifiedClassLoader newClassLoader(URL url,
                                         URL origURL,
                                         boolean addToRepository)
                                  throws Exception
Deprecated. 
Description copied from class: LoaderRepository
Create UnifiedClassLoader and optionally add it to the repository

Specified by:
newClassLoader in interface UnifiedLoaderRepositoryMBean
Specified by:
newClassLoader in class LoaderRepository
Parameters:
url - the URL to use for class loading
origURL - 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
Returns:
the UCL instance
Throws:
Exception

loadClass

public Class loadClass(String name,
                       boolean resolve,
                       ClassLoader cl)
                throws ClassNotFoundException
Deprecated. 
Loads a class following the Unified ClassLoader architecture.

Specified by:
loadClass in class LoaderRepository
Parameters:
name -
resolve -
cl -
Returns:
Throws:
ClassNotFoundException

getResource

public URL getResource(String name,
                       ClassLoader cl)
Deprecated. 
Loads a resource following the Unified ClassLoader architecture

Specified by:
getResource in class LoaderRepository
Parameters:
name - the resource name
cl - the requesting class loader
Returns:
The resource URL if found, null otherwise

getResources

public void getResources(String name,
                         ClassLoader cl,
                         List urls)
Deprecated. 
Not implemented

Specified by:
getResources in class LoaderRepository
Parameters:
name -
cl -
urls -

findClass

public Class findClass(String name)
Deprecated. 
Iterates through the current class loaders and tries to find the given class name.

Returns:
the Class object for name if found, null otherwise.

getURLs

public URL[] getURLs()
Deprecated. 
Obtain a listing of the URL for all UnifiedClassLoaders associated with the ServiceLibraries

Specified by:
getURLs in interface UnifiedLoaderRepositoryMBean
Overrides:
getURLs in class LoaderRepository

loadClass

public Class loadClass(String className)
                throws ClassNotFoundException
Deprecated. 
Description copied from class: LoaderRepository
Load the given class from the repository.

Specified by:
loadClass in interface ClassLoaderRepository
Specified by:
loadClass in class LoaderRepository
Parameters:
className -
Returns:
Throws:
ClassNotFoundException

loadClassWithout

public Class loadClassWithout(ClassLoader loader,
                              String className)
                       throws ClassNotFoundException
Deprecated. 
Description copied from class: LoaderRepository
Not used.

Specified by:
loadClassWithout in interface ClassLoaderRepository
Specified by:
loadClassWithout in class LoaderRepository
Parameters:
loader -
className -
Returns:
Throws:
ClassNotFoundException

addClassLoader

public void addClassLoader(ClassLoader loader)
Deprecated. 
Description copied from class: LoaderRepository
Add a class loader to the repository

Specified by:
addClassLoader in class LoaderRepository

addClassLoaderURL

public boolean addClassLoaderURL(ClassLoader cl,
                                 URL url)
Deprecated. 
Description copied from class: LoaderRepository
Update the set of URLs known to be associated with a previously added class loader.

Specified by:
addClassLoaderURL in class LoaderRepository
Parameters:
cl -
url -

removeClassLoader

public void removeClassLoader(ClassLoader cl)
Deprecated. 
Description copied from class: LoaderRepository
Remove a cladd loader from the repository.

Specified by:
removeClassLoader in interface UnifiedLoaderRepositoryMBean
Specified by:
removeClassLoader in class LoaderRepository
Parameters:
cl -

registerClassLoader

public LoaderRepository registerClassLoader(UnifiedClassLoader ucl)
Deprecated. 
This method provides an mbean-accessible way to add a UnifiedClassloader, and sends a notification when it is added.

Specified by:
registerClassLoader in interface UnifiedLoaderRepositoryMBean
Parameters:
ucl - an UnifiedClassLoader value
Returns:
a LoaderRepository value

getInstance

public LoaderRepository getInstance()
Deprecated. 
Specified by:
getInstance in interface UnifiedLoaderRepositoryMBean

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
                             throws IllegalArgumentException
Deprecated. 
addNotificationListener delegates to the broadcaster object we hold.

Specified by:
addNotificationListener in interface NotificationBroadcaster
Parameters:
listener - a NotificationListener value
filter - a NotificationFilter value
handback - an Object value
Throws:
IllegalArgumentException - if an error occurs

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Deprecated. 
Description copied from interface: NotificationBroadcaster
Returns the notification metadata associated with the MBean.

Specified by:
getNotificationInfo in interface NotificationBroadcaster
Returns:
See Also:
MBeanNotificationInfo

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
Deprecated. 
removeNotificationListener delegates to our broadcaster object

Specified by:
removeNotificationListener in interface NotificationBroadcaster
Parameters:
listener - a NotificationListener value
Throws:
ListenerNotFoundException - if an error occurs


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.