Package org.jboss.as.ee.component
Class BasicComponentCreateService
- java.lang.Object
-
- org.jboss.as.ee.component.BasicComponentCreateService
-
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<Component>,org.jboss.msc.value.Value<Component>
public class BasicComponentCreateService extends Object implements org.jboss.msc.service.Service<Component>
A service for creating a component.- Author:
- David M. Lloyd, Richard Opalka
-
-
Constructor Summary
Constructors Constructor Description BasicComponentCreateService(ComponentConfiguration componentConfiguration)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BasicComponentcreateComponent()Create the component.Class<?>getComponentClass()Get the component class.Map<Method,org.jboss.invocation.InterceptorFactory>getComponentInterceptors()Get the component interceptor factory map.StringgetComponentName()Get the component name.NamespaceContextSelectorgetNamespaceContextSelector()org.jboss.invocation.InterceptorFactorygetPostConstruct()Get the post-construct interceptor factory.org.jboss.invocation.InterceptorFactorygetPreDestroy()Get the pre-destroy interceptor factory.org.jboss.msc.service.ServiceNamegetServiceName()ComponentgetValue()protected booleanrequiresInterceptors(Method method, ComponentConfiguration componentConfiguration)voidstart(org.jboss.msc.service.StartContext context)voidstop(org.jboss.msc.service.StopContext context)
-
-
-
Constructor Detail
-
BasicComponentCreateService
public BasicComponentCreateService(ComponentConfiguration componentConfiguration)
Construct a new instance.- Parameters:
componentConfiguration- the component configuration
-
-
Method Detail
-
requiresInterceptors
protected boolean requiresInterceptors(Method method, ComponentConfiguration componentConfiguration)
-
start
public void start(org.jboss.msc.service.StartContext context) throws org.jboss.msc.service.StartException- Specified by:
startin interfaceorg.jboss.msc.Service- Specified by:
startin interfaceorg.jboss.msc.service.Service<Component>- Throws:
org.jboss.msc.service.StartException
-
createComponent
protected BasicComponent createComponent()
Create the component.- Returns:
- the component instance
-
stop
public void stop(org.jboss.msc.service.StopContext context)
- Specified by:
stopin interfaceorg.jboss.msc.Service- Specified by:
stopin interfaceorg.jboss.msc.service.Service<Component>
-
getValue
public Component getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Component>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getComponentName
public String getComponentName()
Get the component name.- Returns:
- the component name
-
getPostConstruct
public org.jboss.invocation.InterceptorFactory getPostConstruct()
Get the post-construct interceptor factory.- Returns:
- the post-construct interceptor factory
-
getPreDestroy
public org.jboss.invocation.InterceptorFactory getPreDestroy()
Get the pre-destroy interceptor factory.- Returns:
- the pre-destroy interceptor factory
-
getComponentInterceptors
public Map<Method,org.jboss.invocation.InterceptorFactory> getComponentInterceptors()
Get the component interceptor factory map.- Returns:
- the component interceptor factories
-
getComponentClass
public Class<?> getComponentClass()
Get the component class.- Returns:
- the component class
-
getNamespaceContextSelector
public NamespaceContextSelector getNamespaceContextSelector()
- Returns:
- the namespace context selector for the component, or null if it does not have one
-
getServiceName
public org.jboss.msc.service.ServiceName getServiceName()
-
-