Package org.infinispan.factories
Class NamedComponentFactory
- java.lang.Object
-
- org.infinispan.factories.AbstractComponentFactory
-
- org.infinispan.factories.NamedComponentFactory
-
- All Implemented Interfaces:
ComponentFactory
@Deprecated public abstract class NamedComponentFactory extends AbstractComponentFactory
Deprecated.Since 9.4, please implementAbstractComponentFactory.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.AbstractComponentFactory
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(Class<T> componentType, String componentName)
Deprecated.Constructs a component.Object
construct(String componentName)
Deprecated.-
Methods inherited from class org.infinispan.factories.AbstractComponentFactory
assertTypeConstructable, construct
-
-
-
-
Method Detail
-
construct
public Object construct(String componentName)
Deprecated.- Specified by:
construct
in interfaceComponentFactory
- Overrides:
construct
in classAbstractComponentFactory
- Returns:
- Either a component instance or a
ComponentAlias
pointing to another component.
-
-