Package org.jboss.as.ee.component
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ComponentRegistry.ComponentManagedReferenceFactory
-
Constructor Summary
Constructors Constructor Description ComponentRegistry(org.jboss.msc.service.ServiceRegistry serviceRegistry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponent(ComponentConfiguration componentConfiguration)
ManagedReference
createInstance(Object instance)
ManagedReferenceFactory
createInstanceFactory(Class<?> componentClass)
ManagedReferenceFactory
createInstanceFactory(Class<?> componentClass, boolean optional)
org.jboss.msc.value.InjectedValue<EEClassIntrospector>
getClassIntrospectorInjectedValue()
ManagedReference
getInstance(Object instance)
static org.jboss.msc.service.ServiceName
serviceName(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
-
-
-
Method Detail
-
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()
-
-