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 a
Component which starts and stops the component instance.- Author:
- John Bailey, David M. Lloyd
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.msc.inject.Injector<BasicComponent>Get the component injector.org.jboss.msc.value.InjectedValue<ExecutorService>getValue()voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
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:
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
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Component>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getComponentInjector
Get the component injector.- Returns:
- the component injector
-
getExecutorInjector
-