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 Details

    • BasicComponentCreateService

      public BasicComponentCreateService(ComponentConfiguration componentConfiguration)
      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:
      start in interface org.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 interface org.jboss.msc.Service
    • getValue

      Specified by:
      getValue in interface org.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()