Package org.apache.lucene.util
Class AttributeSource.AttributeFactory
- java.lang.Object
-
- org.apache.lucene.util.AttributeSource.AttributeFactory
-
- Direct Known Subclasses:
Token.TokenAttributeFactory
- Enclosing class:
- AttributeSource
public abstract static class AttributeSource.AttributeFactory extends Object
An AttributeFactory creates instances ofAttributeImpl
s.
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeSource.AttributeFactory
DEFAULT_ATTRIBUTE_FACTORY
This is the default factory that createsAttributeImpl
s using the class name of the suppliedAttribute
interface class by appendingImpl
to it.
-
Constructor Summary
Constructors Constructor Description AttributeFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract AttributeImpl
createAttributeInstance(Class<? extends Attribute> attClass)
returns anAttributeImpl
for the suppliedAttribute
interface class.
-
-
-
Field Detail
-
DEFAULT_ATTRIBUTE_FACTORY
public static final AttributeSource.AttributeFactory DEFAULT_ATTRIBUTE_FACTORY
This is the default factory that createsAttributeImpl
s using the class name of the suppliedAttribute
interface class by appendingImpl
to it.
-
-
Method Detail
-
createAttributeInstance
public abstract AttributeImpl createAttributeInstance(Class<? extends Attribute> attClass)
returns anAttributeImpl
for the suppliedAttribute
interface class.
-
-