Class ModuleLoadService
java.lang.Object
org.jboss.as.server.moduleservice.ModuleLoadService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<org.jboss.modules.Module>,org.jboss.msc.value.Value<org.jboss.modules.Module>
public class ModuleLoadService
extends Object
implements org.jboss.msc.service.Service<org.jboss.modules.Module>
Service that loads and re-links a module once all the modules dependencies are available.
- Author:
- Stuart Douglas, Richard Opalka
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.value.InjectedValue<ModuleDefinition>org.jboss.msc.value.InjectedValue<ServiceModuleLoader>org.jboss.modules.ModulegetValue()static org.jboss.msc.service.ServiceNameInstalls a ModuleLoadService that will load the module with the given identifier.static org.jboss.msc.service.ServiceNameinstall(org.jboss.msc.service.ServiceTarget target, String identifier, Collection<ModuleDependency> systemDependencies, Collection<ModuleDependency> localDependencies, Collection<ModuleDependency> userDependencies) Installs a ModuleLoadService that will load the module with the given identifier and its dependencies.static org.jboss.msc.service.ServiceNameinstall(org.jboss.msc.service.ServiceTarget target, org.jboss.modules.ModuleIdentifier identifier) Deprecated, for removal: This API element is subject to removal in a future version.static org.jboss.msc.service.ServiceNameinstallAliases(org.jboss.msc.service.ServiceTarget target, String identifier, List<String> aliases) Installs a ModuleLoadService that will load the module with the given identifier and its aliases.static org.jboss.msc.service.ServiceNameinstallAliases(org.jboss.msc.service.ServiceTarget target, org.jboss.modules.ModuleIdentifier identifier, List<String> aliases) Deprecated, for removal: This API element is subject to removal in a future version.UseinstallAliases(ServiceTarget, String, List)insteadvoidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<org.jboss.modules.Module>- Throws:
IllegalStateExceptionIllegalArgumentException
-
install
@Deprecated(forRemoval=true, since="28.0.0") public static org.jboss.msc.service.ServiceName install(org.jboss.msc.service.ServiceTarget target, org.jboss.modules.ModuleIdentifier identifier) Deprecated, for removal: This API element is subject to removal in a future version.Useinstall(ServiceTarget, String)insteadInstalls a service that will load the module with the given identifier.- Parameters:
target- the service targetidentifier- the module identifier- Returns:
- the service name
-
install
public static org.jboss.msc.service.ServiceName install(org.jboss.msc.service.ServiceTarget target, String identifier) Installs a ModuleLoadService that will load the module with the given identifier.- Parameters:
target- the service targetidentifier- the module identifier in its canonical form- Returns:
- the service name
-
install
public static org.jboss.msc.service.ServiceName install(org.jboss.msc.service.ServiceTarget target, String identifier, Collection<ModuleDependency> systemDependencies, Collection<ModuleDependency> localDependencies, Collection<ModuleDependency> userDependencies) Installs a ModuleLoadService that will load the module with the given identifier and its dependencies.- Parameters:
target- the service targetidentifier- the module identifier in its canonical formsystemDependencies- the system dependencieslocalDependencies- the local dependenciesuserDependencies- the user dependencies- Returns:
- the service name
-
installAliases
@Deprecated(forRemoval=true, since="28.0.0") public static org.jboss.msc.service.ServiceName installAliases(org.jboss.msc.service.ServiceTarget target, org.jboss.modules.ModuleIdentifier identifier, List<String> aliases) Deprecated, for removal: This API element is subject to removal in a future version.UseinstallAliases(ServiceTarget, String, List)instead -
installAliases
public static org.jboss.msc.service.ServiceName installAliases(org.jboss.msc.service.ServiceTarget target, String identifier, List<String> aliases) Installs a ModuleLoadService that will load the module with the given identifier and its aliases.- Parameters:
target- the service targetidentifier- the module identifier in its canonical formaliases- the list of aliases- Returns:
- the service name
-
getServiceModuleLoader
-
getModuleDefinitionInjectedValue
-
getSystemDependencies
-
getUserDependencies
-
getLocalDependencies
-
install(ServiceTarget, String)instead