| java.lang.Object com.sun.cdc.config.DynamicProperties
DynamicProperties | public class DynamicProperties (Code) | | This class holds information necessary for dynamic properties resolution.
|
Method Summary | |
public static void | addSnapshot(Properties props) Adds all dynamic properties in their current state to the given
Properties object. | public static PropertyProvider | get(String key) Returns provider for the property corresponding to the key.
Parameters: key - key for the dynamic property. | public static boolean | isEmpty() Checks whether there are any property providers set. | public static void | put(String key, PropertyProvider provider) Sets the specified PropertyProvider object to be called
for dynamic property resolution. |
addSnapshot | public static void addSnapshot(Properties props)(Code) | | Adds all dynamic properties in their current state to the given
Properties object.
Parameters: props - set of properties that dynamic property values will beadded to. |
get | public static PropertyProvider get(String key)(Code) | | Returns provider for the property corresponding to the key.
Parameters: key - key for the dynamic property. PropertyProvider instance that corresponds tothe given property key. |
isEmpty | public static boolean isEmpty()(Code) | | Checks whether there are any property providers set.
true if at least one provider is defined,false otherwise. |
put | public static void put(String key, PropertyProvider provider)(Code) | | Sets the specified PropertyProvider object to be called
for dynamic property resolution. This method should be used at the time
of properties initialization.
Parameters: key - key for the dynamic property. Parameters: provider - PropertyProvider instance that will be usedto resolve the dynamic property with the specified key. |
|
|