Package org.jboss.as.ee.component
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 aComponent
which starts and stops the component instance.- Author:
- John Bailey, David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ComponentStartService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.msc.inject.Injector<BasicComponent>
getComponentInjector()
Get the component injector.org.jboss.msc.value.InjectedValue<ExecutorService>
getExecutorInjector()
BasicComponent
getValue()
void
start(org.jboss.msc.service.StartContext context)
void
stop(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:
start
in interfaceorg.jboss.msc.Service
- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stop
in interfaceorg.jboss.msc.Service
-
getValue
public BasicComponent getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValue
in interfaceorg.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()
-
-