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,
java.lang.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(java.lang.Class<? extends Attribute> attClass)
Returns an
AttributeImpl for the supplied Attribute interface class. |
protected abstract A |
createInstance()
Creates an instance of
A. |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
getStaticImplementationpublic StaticImplementationAttributeFactory(AttributeFactory delegate, java.lang.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(java.lang.Class<? extends Attribute> attClass)
AttributeFactoryAttributeImpl for the supplied Attribute interface class.createAttributeInstance in class AttributeFactoryprotected abstract A createInstance()
A.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.