Class PropertyLookupRegistry


  • public class PropertyLookupRegistry
    extends java.lang.Object
    Acts as a central point for property lookups
    Author:
    Gethin James
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object lookup​(java.lang.String propertyName, java.lang.String propertyValue)
      Looks up the property value using a PropertyLookup
      void setLookups​(java.util.List<PropertyLookup> lookups)
      Set the supported property lookup classes.
      java.util.Set<java.lang.String> supports()
      The list of property keys that are supported by this class
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyLookupRegistry

        public PropertyLookupRegistry()
    • Method Detail

      • setLookups

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

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

        public java.lang.Object lookup​(java.lang.String propertyName,
                                       java.lang.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