Class PropertyLookupRegistry


  • public class PropertyLookupRegistry
    extends Object
    Acts as a central point for property lookups
    Author:
    Gethin James
    • Constructor Detail

      • PropertyLookupRegistry

        public PropertyLookupRegistry()
    • Method Detail

      • setLookups

        public void setLookups​(List<PropertyLookup> lookups)
        Set the supported property lookup classes.
        Parameters:
        lookups -
      • supports

        public Set<String> supports()
        The list of property keys that are supported by this class
        Returns:
        Set property keys
      • lookup

        public Object lookup​(String propertyName,
                             String propertyValue)
        Looks up the property value using a PropertyLookup
        Parameters:
        propertyName - the property name/type
        propertyValue - the value to lookup
        Returns:
        Object to be serialized as json