Package org.infinispan.factories
Class NamedComponentFactory
- java.lang.Object
-
- org.infinispan.factories.AnyScopeComponentFactory
-
- org.infinispan.factories.AbstractComponentFactory
-
- org.infinispan.factories.NamedComponentFactory
-
- All Implemented Interfaces:
ComponentFactory
@Deprecated public abstract class NamedComponentFactory extends AbstractComponentFactory
Deprecated.Since 9.4, please implementAnyScopeComponentFactory.construct(String)
directly.A specialized type of component factory that knows how to create named components, identified with theComponentName
annotation on the classes requested inInject
annotated methods.- Since:
- 4.0
- Author:
- Manik Surtani
-
-
Field Summary
-
Fields inherited from class org.infinispan.factories.AnyScopeComponentFactory
globalComponentRegistry, globalConfiguration, log
-
-
Constructor Summary
Constructors Constructor Description NamedComponentFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract <T> T
construct(java.lang.Class<T> componentType, java.lang.String componentName)
Deprecated.Constructs a component.java.lang.Object
construct(java.lang.String componentName)
Deprecated.-
Methods inherited from class org.infinispan.factories.AnyScopeComponentFactory
construct
-
-
-
-
Method Detail
-
construct
public java.lang.Object construct(java.lang.String componentName)
Deprecated.- Specified by:
construct
in interfaceComponentFactory
- Overrides:
construct
in classAnyScopeComponentFactory
- Returns:
- Either a component instance or a
ComponentAlias
pointing to another component.
-
construct
public abstract <T> T construct(java.lang.Class<T> componentType, java.lang.String componentName)
Deprecated.Constructs a component.- Parameters:
componentType
- type of component- Returns:
- a component
-
-