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 externalModule) |
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 externalModule)
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<ExternalModuleService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ExternalModuleService>
public ExternalModuleService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<ExternalModuleService>
IllegalStateException
IllegalArgumentException
public static void addService(org.jboss.msc.service.ServiceTarget serviceTarget)
Copyright © 2023 JBoss by Red Hat. All rights reserved.