Class GlobalDirectoryDeploymentService

java.lang.Object
org.jboss.as.ee.subsystem.GlobalDirectoryDeploymentService
All Implemented Interfaces:
org.jboss.msc.Service

public class GlobalDirectoryDeploymentService extends Object implements org.jboss.msc.Service
This service does the required steps to add a directory as a deployment dependency and as an ExternalModule.

Basically is used as an intermediate step in GlobalDirectoryDependencyProcessor to retrieve the global directories supplied by the services installed with the corresponding ee/global-directory resource. Those services are consumed here and for each supplied value an ExternalModule is created and added as system dependency to the current deployment.

Author:
Yeray Borges
  • Field Summary

    Fields inherited from interface org.jboss.msc.Service

    NULL
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlobalDirectoryDeploymentService(List<Supplier<GlobalDirectoryResourceDefinition.GlobalDirectory>> globalDirectories, org.jboss.as.server.moduleservice.ExternalModule externalModuleService, org.jboss.as.server.deployment.module.ModuleSpecification moduleSpecification, org.jboss.modules.ModuleLoader moduleLoader, org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceTarget serviceTarget)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(org.jboss.msc.service.StartContext context)
     
    void
    stop(org.jboss.msc.service.StopContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GlobalDirectoryDeploymentService

      public GlobalDirectoryDeploymentService(List<Supplier<GlobalDirectoryResourceDefinition.GlobalDirectory>> globalDirectories, org.jboss.as.server.moduleservice.ExternalModule externalModuleService, org.jboss.as.server.deployment.module.ModuleSpecification moduleSpecification, org.jboss.modules.ModuleLoader moduleLoader, org.jboss.msc.service.ServiceRegistry serviceRegistry, org.jboss.msc.service.ServiceTarget serviceTarget)
  • 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