| java.lang.Object org.jboss.mx.loading.LoaderRepositoryFactory
LoaderRepositoryFactory | public class LoaderRepositoryFactory (Code) | | A factory for LoaderRepository instances. This is used to obtain repository
instances for scoped class loading.
author: David Jencks author: Scott.Stark@jboss.org version: $Revision: 57200 $ |
Inner Class :public static class LoaderRepositoryConfig implements Serializable | |
Inner Class :public static interface LoaderRepositoryConfigParser | |
Method Summary | |
public static synchronized void | createLoaderRepository(MBeanServer server, String repositoryClassName, ObjectName repositoryName) Create a LoaderRepository instance of type repositoryClassName and
register it under repositoryName if there is not already an instance
registered. | public static synchronized void | createLoaderRepository(MBeanServer server, LoaderRepositoryConfig config) Create and configure a LoaderRepository instance using the given config
if there is not already an instance registered. | public static synchronized void | destroyLoaderRepository(MBeanServer server, ObjectName repositoryName) | public static LoaderRepositoryConfig | parseRepositoryConfig(Element config) Given a loader-repository element fragment like:
jboss.test.cts:loader=cts-cmp2v2.ear
... |
DEFAULT_LOADER_REPOSITORY | public static ObjectName DEFAULT_LOADER_REPOSITORY(Code) | | The JMX name of the parent LoaderRepository
|
createLoaderRepository | public static synchronized void createLoaderRepository(MBeanServer server, String repositoryClassName, ObjectName repositoryName) throws JMException(Code) | | Create a LoaderRepository instance of type repositoryClassName and
register it under repositoryName if there is not already an instance
registered.
Parameters: server - the MBeanServer to register with Parameters: repositoryClassName - the class which implements LoaderRepository Parameters: repositoryName - the JMX name to register under throws: JMException - thrown on any failure to create or register the repository |
createLoaderRepository | public static synchronized void createLoaderRepository(MBeanServer server, LoaderRepositoryConfig config) throws JMException(Code) | | Create and configure a LoaderRepository instance using the given config
if there is not already an instance registered.
Parameters: server - the MBeanServer to register with Parameters: config - the configuration information which will be used to createregister and configure the LoaderRepository instance. throws: JMException - thrown on any failure to create or register the repository |
parseRepositoryConfig | public static LoaderRepositoryConfig parseRepositoryConfig(Element config) throws MalformedObjectNameException(Code) | | Given a loader-repository element fragment like:
jboss.test.cts:loader=cts-cmp2v2.ear
...
create a LoaderRepositoryConfig representation.
Parameters: config - the xml loader-repository element a LoaderRepositoryConfig representation of the config |
|
|