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
-
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionBasicComponentCreateService(ComponentConfiguration componentConfiguration) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicComponentCreate the component.Class<?>Get the component class.Get the component interceptor factory map.Get the component name.org.jboss.invocation.InterceptorFactoryGet the post-construct interceptor factory.org.jboss.invocation.InterceptorFactoryGet the pre-destroy interceptor factory.org.jboss.msc.service.ServiceNamegetValue()protected booleanrequiresInterceptors(Method method, ComponentConfiguration componentConfiguration) voidstart(org.jboss.msc.service.StartContext context) voidstop(org.jboss.msc.service.StopContext context)
-
Constructor Details
-
BasicComponentCreateService
Construct a new instance.- Parameters:
componentConfiguration- the component configuration
-
-
Method Details
-
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- Throws:
org.jboss.msc.service.StartException
-
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
-
getValue
- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<Component>- Throws:
IllegalStateExceptionIllegalArgumentException
-
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
Get the component interceptor factory map.- Returns:
- the component interceptor factories
-
getComponentClass
Get the component class.- Returns:
- the component class
-
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()
-