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 Details

    • start

      public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException
      Specified by:
      start in interface org.jboss.msc.Service
      Throws:
      org.jboss.msc.service.StartException
    • stop

      public void stop(org.jboss.msc.service.StopContext context)
      Specified by:
      stop in interface org.jboss.msc.Service
    • getValue

      public org.jboss.modules.Module getValue() throws IllegalStateException, IllegalArgumentException
      Specified by:
      getValue in interface org.jboss.msc.value.Value<org.jboss.modules.Module>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • 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.
      Installs a service that will load the module with the given identifier.
      Parameters:
      target - the service target
      identifier - 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 target
      identifier - 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 target
      identifier - the module identifier in its canonical form
      systemDependencies - the system dependencies
      localDependencies - the local dependencies
      userDependencies - 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.
    • 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 target
      identifier - the module identifier in its canonical form
      aliases - 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()