Class ConfigurationInterpolator.DefaultPrefixLookupsHolder

    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultPrefixLookupsHolder​(java.util.Properties props)
      Constructs a new instance initialized with the given properties.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addLookup​(DefaultLookups lookup, java.util.Map<java.lang.String,​Lookup> map)
      Add the prefix and lookup from lookup to map.
      private static java.util.Map<java.lang.String,​Lookup> createDefaultLookups()
      Create the lookup map used when the user has requested no customization.
      (package private) java.util.Map<java.lang.String,​Lookup> getDefaultPrefixLookups()
      Gets the default prefix lookups map.
      private static java.util.Map<java.lang.String,​Lookup> parseLookups​(java.lang.String str)
      Constructs a lookup map by parsing the given string.
      • Methods inherited from class java.lang.Object

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

      • DefaultPrefixLookupsHolder

        DefaultPrefixLookupsHolder​(java.util.Properties props)
        Constructs a new instance initialized with the given properties.
        Parameters:
        props - initialization properties
    • Method Detail

      • addLookup

        private static void addLookup​(DefaultLookups lookup,
                                      java.util.Map<java.lang.String,​Lookup> map)
        Add the prefix and lookup from lookup to map.
        Parameters:
        lookup - lookup to add
        map - map to add to
      • createDefaultLookups

        private static java.util.Map<java.lang.String,​Lookup> createDefaultLookups()
        Create the lookup map used when the user has requested no customization.
        Returns:
        default lookup map
      • parseLookups

        private static java.util.Map<java.lang.String,​Lookup> parseLookups​(java.lang.String str)
        Constructs a lookup map by parsing the given string. The string is expected to contain comma or space-separated names of values from the DefaultLookups enum.
        Parameters:
        str - string to parse; not null
        Returns:
        lookup map parsed from the given string
        Throws:
        java.lang.IllegalArgumentException - if the string does not contain a valid default lookup definition
      • getDefaultPrefixLookups

        java.util.Map<java.lang.String,​Lookup> getDefaultPrefixLookups()
        Gets the default prefix lookups map.
        Returns:
        default prefix lookups map