public class ServiceModuleLoader extends org.jboss.modules.ModuleLoader implements org.jboss.msc.service.Service<ServiceModuleLoader>
ModuleLoader that loads module definitions from msc services. Module specs are looked up in msc services that
correspond to the module names.
Modules are automatically removed when the corresponding service comes down.
| Modifier and Type | Field and Description |
|---|---|
static String |
MODULE_PREFIX |
static org.jboss.msc.service.ServiceName |
MODULE_RESOLVED_SERVICE_PREFIX |
static org.jboss.msc.service.ServiceName |
MODULE_SERVICE_PREFIX |
static org.jboss.msc.service.ServiceName |
MODULE_SPEC_SERVICE_PREFIX |
| Constructor and Description |
|---|
ServiceModuleLoader(org.jboss.modules.ModuleLoader mainModuleLoader) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addService(org.jboss.msc.service.ServiceTarget serviceTarget,
Bootstrap.Configuration configuration) |
org.jboss.modules.ModuleSpec |
findModule(org.jboss.modules.ModuleIdentifier identifier) |
ServiceModuleLoader |
getValue() |
static void |
installModuleResolvedService(org.jboss.msc.service.ServiceTarget serviceTarget,
org.jboss.modules.ModuleIdentifier identifier) |
static boolean |
isDynamicModule(org.jboss.modules.ModuleIdentifier identifier)
Returns true if the module identifier is a dynamic module that will be loaded by this module loader
|
static org.jboss.msc.service.ServiceName |
moduleResolvedServiceName(org.jboss.modules.ModuleIdentifier identifier)
Returns the corresponding module resolved service name for the given module.
|
static org.jboss.msc.service.ServiceName |
moduleServiceName(org.jboss.modules.ModuleIdentifier identifier)
Returns the corresponding ModuleLoadService service name for the given module.
|
static org.jboss.msc.service.ServiceName |
moduleSpecServiceName(org.jboss.modules.ModuleIdentifier identifier)
Returns the corresponding ModuleSpec service name for the given module.
|
protected org.jboss.modules.Module |
preloadModule(org.jboss.modules.ModuleIdentifier identifier) |
void |
relinkModule(org.jboss.modules.Module module) |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
String |
toString() |
findLoadedModuleLocal, findLoadedModuleLocal, findModule, forClass, forClassLoader, getDependencies, getFinders, getModuleDescription, installMBeanServer, iterateModules, iterateModules, loadModule, loadModule, loadModuleLocal, loadModuleLocal, preloadExportedModule, preloadExportedModule, preloadModule, preloadModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocal, unloadModuleLocalpublic static final org.jboss.msc.service.ServiceName MODULE_SPEC_SERVICE_PREFIX
public static final org.jboss.msc.service.ServiceName MODULE_SERVICE_PREFIX
public static final org.jboss.msc.service.ServiceName MODULE_RESOLVED_SERVICE_PREFIX
public static final String MODULE_PREFIX
public ServiceModuleLoader(org.jboss.modules.ModuleLoader mainModuleLoader)
protected org.jboss.modules.Module preloadModule(org.jboss.modules.ModuleIdentifier identifier)
throws org.jboss.modules.ModuleLoadException
preloadModule in class org.jboss.modules.ModuleLoaderorg.jboss.modules.ModuleLoadExceptionpublic org.jboss.modules.ModuleSpec findModule(org.jboss.modules.ModuleIdentifier identifier)
throws org.jboss.modules.ModuleLoadException
findModule in class org.jboss.modules.ModuleLoaderorg.jboss.modules.ModuleLoadExceptionpublic String toString()
toString in class org.jboss.modules.ModuleLoaderpublic void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.Serviceorg.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic ServiceModuleLoader getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<ServiceModuleLoader>IllegalStateExceptionIllegalArgumentExceptionpublic void relinkModule(org.jboss.modules.Module module)
throws org.jboss.modules.ModuleLoadException
org.jboss.modules.ModuleLoadExceptionpublic static void addService(org.jboss.msc.service.ServiceTarget serviceTarget,
Bootstrap.Configuration configuration)
public static org.jboss.msc.service.ServiceName moduleSpecServiceName(org.jboss.modules.ModuleIdentifier identifier)
identifier - The module identifierpublic static void installModuleResolvedService(org.jboss.msc.service.ServiceTarget serviceTarget,
org.jboss.modules.ModuleIdentifier identifier)
public static org.jboss.msc.service.ServiceName moduleResolvedServiceName(org.jboss.modules.ModuleIdentifier identifier)
identifier - The module identifierpublic static boolean isDynamicModule(org.jboss.modules.ModuleIdentifier identifier)
public static org.jboss.msc.service.ServiceName moduleServiceName(org.jboss.modules.ModuleIdentifier identifier)
identifier - The module identifierCopyright © 2020 JBoss by Red Hat. All rights reserved.