|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.loading.LoaderRepositoryFactory
A factory for LoaderRepository instances. This is used to obtain repository instances for scoped class loading.
| Nested Class Summary | |
static class |
LoaderRepositoryFactory.LoaderRepositoryConfig
A class that represents the configuration of the a LoaderRepository. |
static interface |
LoaderRepositoryFactory.LoaderRepositoryConfigParser
The interface representing a LoaderRepository configuration parser. |
| Field Summary | |
static ObjectName |
DEFAULT_LOADER_REPOSITORY
The JMX name of the parent LoaderRepository |
| Method Summary | |
static void |
createLoaderRepository(MBeanServer server,
LoaderRepositoryFactory.LoaderRepositoryConfig config)
Create and configure a LoaderRepository instance using the given config if there is not already an instance registered. |
static 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. |
static void |
destroyLoaderRepository(MBeanServer server,
ObjectName repositoryName)
|
static LoaderRepositoryFactory.LoaderRepositoryConfig |
parseRepositoryConfig(Element config)
Given a loader-repository element fragment like: |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static ObjectName DEFAULT_LOADER_REPOSITORY
| Method Detail |
public static LoaderRepositoryFactory.LoaderRepositoryConfig parseRepositoryConfig(Element config) throws MalformedObjectNameException
config - the xml loader-repository element
MalformedObjectNameExceptionpublic static void createLoaderRepository(MBeanServer server, String repositoryClassName, ObjectName repositoryName) throws JMException
server - the MBeanServer to register withrepositoryClassName - the class which implements LoaderRepositoryrepositoryName - the JMX name to register under
JMException - thrown on any failure to create or register the repositorypublic static void createLoaderRepository(MBeanServer server, LoaderRepositoryFactory.LoaderRepositoryConfig config) throws JMException
server - the MBeanServer to register withconfig - the configuration information which will be used to create
register and configure the LoaderRepository instance.
JMException - thrown on any failure to create or register the repositorypublic static void destroyLoaderRepository(MBeanServer server, ObjectName repositoryName)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||