public final class StringLookupFactory extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static StringLookupFactory | INSTANCEDefines the singleton for this class. | 
| Modifier and Type | Method and Description | 
|---|---|
| StringLookup | dateStringLookup()Returns the DateStringLookup singleton instance to format the current date with the format given in the key in a
 format compatible with  SimpleDateFormat. | 
| StringLookup | environmentVariableStringLookup()Returns the EnvironmentVariableStringLookup singleton instance where the lookup key is an environment variable
 name. | 
| StringLookup | interpolatorStringLookup()Returns a new InterpolatorStringLookup. | 
| StringLookup | interpolatorStringLookup(Map<String,StringLookup> stringLookupMap,
                        StringLookup defaultStringLookup,
                        boolean addDefaultLookups)Returns a new InterpolatorStringLookup. | 
| <V> StringLookup | interpolatorStringLookup(Map<String,V> map)Returns a new InterpolatorStringLookup. | 
| StringLookup | interpolatorStringLookup(StringLookup defaultStringLookup)Returns a new InterpolatorStringLookup. | 
| StringLookup | javaPlatformStringLookup()Returns the JavaPlatformStringLookup singleton instance. | 
| StringLookup | localHostStringLookup()Returns the LocalHostStringLookup singleton instance where the lookup key is one of:
 
 name: for the local host name, for example  EXAMPLE.
 canonical-name: for the local canonical host name, for exampleEXAMPLE.apache.org.
 address: for the local host address, for example192.168.56.1. | 
| <V> StringLookup | mapStringLookup(Map<String,V> map)Returns a new map-based lookup where the request for a lookup is answered with the value for that key. | 
| StringLookup | nullStringLookup()Returns the NullStringLookup singleton instance which always returns null. | 
| StringLookup | resourceBundleStringLookup()Returns the ResourceBundleStringLookup singleton instance. | 
| StringLookup | systemPropertyStringLookup()Returns the SystemPropertyStringLookup singleton instance where the lookup key is a system property name. | 
public static final StringLookupFactory INSTANCE
public StringLookup dateStringLookup()
SimpleDateFormat.public StringLookup environmentVariableStringLookup()
public StringLookup interpolatorStringLookup()
The following lookups are used by default:
SystemPropertyStringLookup.EnvironmentVariableStringLookup.JavaPlatformStringLookup.DateStringLookup.LocalHostStringLookup, see localHostStringLookup() for key names.public <V> StringLookup interpolatorStringLookup(Map<String,V> map)
The following lookups are used by default:
SystemPropertyStringLookup.EnvironmentVariableStringLookup.JavaPlatformStringLookup.DateStringLookup.LocalHostStringLookup, see localHostStringLookup() for key names.V - the value type the default string lookup's map.map - the default map for string lookups.public StringLookup interpolatorStringLookup(StringLookup defaultStringLookup)
The following lookups are used by default:
SystemPropertyStringLookup.EnvironmentVariableStringLookup.JavaPlatformStringLookup.DateStringLookup.LocalHostStringLookup, see localHostStringLookup() for key names.defaultStringLookup - the default string lookup.public StringLookup interpolatorStringLookup(Map<String,StringLookup> stringLookupMap, StringLookup defaultStringLookup, boolean addDefaultLookups)
 If addDefaultLookups is true, the following lookups are used in addition to the ones provided in
 stringLookupMap:
 
SystemPropertyStringLookup.EnvironmentVariableStringLookup.JavaPlatformStringLookup.DateStringLookup.LocalHostStringLookup, see localHostStringLookup() for key names.stringLookupMap - the map of string lookups.defaultStringLookup - the default string lookup.addDefaultLookups - whether to use lookups as described above.public StringLookup javaPlatformStringLookup()
public StringLookup localHostStringLookup()
EXAMPLE.EXAMPLE.apache.org.192.168.56.1.public <V> StringLookup mapStringLookup(Map<String,V> map)
V - the map value type.map - the map.public StringLookup nullStringLookup()
public StringLookup resourceBundleStringLookup()
Looks up the value for a given key in the format "BundleName:BundleKey".
For example: "com.domain.messages:MyKey".
public StringLookup systemPropertyStringLookup()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.