Class ComponentRegistry

java.lang.Object
org.jboss.as.ee.component.ComponentRegistry

public class ComponentRegistry extends Object
Registry that can be used to create a fully injected class instance. If there is an appropriate component regiestered an instance of the component will be created. Otherwise the default class introspector will be used to create an instance.

This can be problematic in theory, as it is possible to have multiple components for a single class, however it does not seem to be an issue in practice.

This registry only contains simple component types that have at most 1 view

Author:
Stuart Douglas
  • Constructor Details

    • ComponentRegistry

      public ComponentRegistry(org.jboss.msc.service.ServiceRegistry serviceRegistry)
  • Method Details

    • serviceName

      public static org.jboss.msc.service.ServiceName serviceName(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
    • addComponent

      public void addComponent(ComponentConfiguration componentConfiguration)
    • createInstanceFactory

      public ManagedReferenceFactory createInstanceFactory(Class<?> componentClass)
    • createInstanceFactory

      public ManagedReferenceFactory createInstanceFactory(Class<?> componentClass, boolean optional)
    • createInstance

      public ManagedReference createInstance(Object instance)
    • getInstance

      public ManagedReference getInstance(Object instance)
    • getClassIntrospectorInjectedValue

      public org.jboss.msc.value.InjectedValue<EEClassIntrospector> getClassIntrospectorInjectedValue()