public class ExternalModuleService extends Object implements org.jboss.msc.service.Service<ExternalModuleService>
Once external modules are installed there is currently no way to safely remove the module spec service, however as they are
on-demand services if all dependent services are stopped then the actual Module will be unloaded.
TODO: support removing modules when msc can tell us that nothing depends on the service.
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTERNAL_MODULE_PREFIX |
| Constructor and Description |
|---|
ExternalModuleService() |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.modules.ModuleIdentifier |
addExternalModule(String moduleName,
org.jboss.msc.service.ServiceRegistry serviceRegistry,
org.jboss.msc.service.ServiceTarget serviceTarget) |
org.jboss.modules.ModuleIdentifier |
addExternalModule(String moduleName,
org.jboss.msc.service.ServiceRegistry serviceRegistry,
org.jboss.msc.service.ServiceTarget serviceTarget,
String path) |
static void |
addService(org.jboss.msc.service.ServiceTarget serviceTarget) |
ExternalModuleService |
getValue() |
boolean |
isValid(String externalModule)
Is external module item valid.
|
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final String EXTERNAL_MODULE_PREFIX
public boolean isValid(String externalModule)
externalModule - the external module class path itempublic org.jboss.modules.ModuleIdentifier addExternalModule(String moduleName, org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceTarget serviceTarget)
public org.jboss.modules.ModuleIdentifier addExternalModule(String moduleName, org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceTarget serviceTarget, String path)
public 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 ExternalModuleService getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<ExternalModuleService>IllegalStateExceptionIllegalArgumentExceptionpublic static void addService(org.jboss.msc.service.ServiceTarget serviceTarget)
Copyright © 2019 JBoss by Red Hat. All rights reserved.