Package org.jboss.as.ee.component
Class ComponentRegistry
java.lang.Object
org.jboss.as.ee.component.ComponentRegistry
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(ComponentConfiguration componentConfiguration) createInstance(Object instance) createInstanceFactory(Class<?> componentClass) createInstanceFactory(Class<?> componentClass, boolean optional) org.jboss.msc.value.InjectedValue<EEClassIntrospector>getInstance(Object instance) static org.jboss.msc.service.ServiceNameserviceName(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
-
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
-
createInstanceFactory
-
createInstanceFactory
-
createInstance
-
getInstance
-
getClassIntrospectorInjectedValue
-