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 BasicComponent
createComponent()
Create the component.Class<?>
getComponentClass()
Get the component class.Map<Method,org.jboss.invocation.InterceptorFactory>
getComponentInterceptors()
Get the component interceptor factory map.String
getComponentName()
Get the component name.NamespaceContextSelector
getNamespaceContextSelector()
org.jboss.invocation.InterceptorFactory
getPostConstruct()
Get the post-construct interceptor factory.org.jboss.invocation.InterceptorFactory
getPreDestroy()
Get the pre-destroy interceptor factory.org.jboss.msc.service.ServiceName
getServiceName()
Component
getValue()
protected boolean
requiresInterceptors(Method method, ComponentConfiguration componentConfiguration)
void
start(org.jboss.msc.service.StartContext context)
void
stop(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:
start
in interfaceorg.jboss.msc.Service
- 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:
stop
in interfaceorg.jboss.msc.Service
-
getValue
public Component getValue() throws IllegalStateException, IllegalArgumentException
- Specified by:
getValue
in interfaceorg.jboss.msc.value.Value<Component>
- Throws:
IllegalStateException
IllegalArgumentException
-
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()
-
-