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 aComponentwhich 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()BasicComponentgetValue()voidstart(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 BasicComponent getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Component>- Throws:
IllegalStateExceptionIllegalArgumentException
-
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()
-
-