Class AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>

  • Enclosing class:
    AttributeFactory

    public abstract static class AttributeFactory.StaticImplementationAttributeFactory<A extends AttributeImpl>
    extends AttributeFactory
    Expert: AttributeFactory returning an instance of the given 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.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Constructor Detail

      • StaticImplementationAttributeFactory

        protected 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.