Interface Attributed

All Known Implementing Classes:
Dependency

public interface Attributed
Container for metadata mapped from foreign tools. The slightly strange pattern of storing the data as a map of strings and retrieving it as something more strongly typed is for ease of serialization/deserialization without having to reconfigure all of our jackson serializers to accept a polymorphic map of String -> Attribute
  • Method Details

    • getAttributes

      Map<String,String> getAttributes()
    • findAttribute

      default <T extends Attribute> Optional<T> findAttribute(Class<T> clazz)
      Look up an attribute by class. Only works for attributes which expose "key" and "from" static methods.