public abstract static class AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl> extends AttributeFactory
clazz
for the
attributes it implements. For all other attributes it calls the given delegate factory
as fallback. This class can be used to prefer a specific AttributeImpl
which
combines multiple attributes over separate classes.AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>
DEFAULT_ATTRIBUTE_FACTORY
Constructor and Description |
---|
StaticImplementationAttributeFactory(AttributeFactory delegate,
Class<A> clazz)
Expert: Creates an AttributeFactory returning
clazz as instance for the
attributes it implements and for all other attributes calls the given delegate factory. |
Modifier and Type | Method and Description |
---|---|
AttributeImpl |
createAttributeInstance(Class<? extends Attribute> attClass)
Returns an
AttributeImpl for the supplied Attribute interface class. |
protected abstract A |
createInstance()
Creates an instance of
A . |
boolean |
equals(Object other) |
int |
hashCode() |
getStaticImplementation
public StaticImplementationAttributeFactory(AttributeFactory delegate, Class<A> clazz)
clazz
as instance for the
attributes it implements and for all other attributes calls the given delegate factory.public final AttributeImpl createAttributeInstance(Class<? extends Attribute> attClass)
AttributeFactory
AttributeImpl
for the supplied Attribute
interface class.createAttributeInstance
in class AttributeFactory
protected abstract A createInstance()
A
.Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.