Package org.infinispan.factories
Class AbstractComponentFactory
- java.lang.Object
-
- org.infinispan.factories.AbstractComponentFactory
-
- Direct Known Subclasses:
AbstractNamedCacheComponentFactory
,ClusterContainerStatsFactory
,ClusterTopologyManagerFactory
,EmptyConstructorFactory
,EncoderRegistryFactory
,GlobalSecurityManagerFactory
,LocalTopologyManagerFactory
,NamedComponentFactory
,TestDelayFactory
,TransportFactory
public abstract class AbstractComponentFactory extends Object
Factory that creates components used internally within Infinispan, and also wires dependencies into the components. TheInternalCacheFactory
is a special subclass of this, which bootstraps the construction of other components. When this class is loaded, it maintains a static list of known default factories for known components, which it then delegates to, when actually performing the construction.- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
- See Also:
Inject
,ComponentRegistry
-
-
Field Summary
Fields Modifier and Type Field Description protected GlobalComponentRegistry
globalComponentRegistry
protected GlobalConfiguration
globalConfiguration
-
Constructor Summary
Constructors Constructor Description AbstractComponentFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
assertTypeConstructable(Class<?> requestedType, Class<?>... ableToConstruct)
abstract <T> T
construct(Class<T> componentType)
Constructs a component.
-
-
-
Field Detail
-
globalComponentRegistry
protected GlobalComponentRegistry globalComponentRegistry
-
globalConfiguration
protected GlobalConfiguration globalConfiguration
-
-