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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<ModuleDependency>getLocalDependencies()org.jboss.msc.value.InjectedValue<ModuleDefinition>getModuleDefinitionInjectedValue()org.jboss.msc.value.InjectedValue<ServiceModuleLoader>getServiceModuleLoader()List<ModuleDependency>getSystemDependencies()List<ModuleDependency>getUserDependencies()org.jboss.modules.ModulegetValue()static org.jboss.msc.service.ServiceNameinstall(org.jboss.msc.service.ServiceTarget target, String identifier)Installs 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.Useinstall(ServiceTarget, String)insteadstatic 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 Detail
-
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
public org.jboss.modules.Module getValue() throws IllegalStateException, IllegalArgumentException- 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
public org.jboss.msc.value.InjectedValue<ServiceModuleLoader> getServiceModuleLoader()
-
getModuleDefinitionInjectedValue
public org.jboss.msc.value.InjectedValue<ModuleDefinition> getModuleDefinitionInjectedValue()
-
getSystemDependencies
public List<ModuleDependency> getSystemDependencies()
-
getUserDependencies
public List<ModuleDependency> getUserDependencies()
-
getLocalDependencies
public List<ModuleDependency> getLocalDependencies()
-
-