Class ComponentStartService

java.lang.Object
org.jboss.as.ee.component.ComponentStartService
All Implemented Interfaces:
org.jboss.msc.Service, org.jboss.msc.service.Service<Component>, org.jboss.msc.value.Value<Component>

public final class ComponentStartService extends Object implements org.jboss.msc.service.Service<Component>
Service wrapper for a Component which starts and stops the component instance.
Author:
John Bailey, David M. Lloyd
  • Constructor Details

    • ComponentStartService

      public ComponentStartService()
  • 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

      Specified by:
      getValue in interface org.jboss.msc.value.Value<Component>
      Throws:
      IllegalStateException
      IllegalArgumentException
    • getComponentInjector

      public org.jboss.msc.inject.Injector<BasicComponent> getComponentInjector()
      Get the component injector.
      Returns:
      the component injector
    • getExecutorInjector

      public org.jboss.msc.value.InjectedValue<ExecutorService> getExecutorInjector()