| com.sun.cdc.config.PropertyProvider
All known Subclasses: com.sun.cdc.config.PropertyProviderAdapter, com.sun.jsr135.DynamicProperties,
PropertyProvider | public interface PropertyProvider (Code) | | This interface must be implemented by every class that performs dynamic
resolution of one or more system properties.
System.getProperty() and System.getProperties()
methods will use this interface every time to retrieve dynamic property
values.
|
Method Summary | |
public boolean | cacheProperties() Tells underlying implementation to cache values of all the properties
corresponding to this particular class. | public String | getValue(String key, boolean fromCache) Returns the current value of the dynamic property corresponding to this
PropertyProvider .
Parameters: key - key for the dynamic property. Parameters: fromCache - indicates whether property value should be taken frominternal cache. |
cacheProperties | public boolean cacheProperties()(Code) | | Tells underlying implementation to cache values of all the properties
corresponding to this particular class. This call can be ignored if
property caching is not supported.
true on success, false otherwise |
getValue | public String getValue(String key, boolean fromCache)(Code) | | Returns the current value of the dynamic property corresponding to this
PropertyProvider .
Parameters: key - key for the dynamic property. Parameters: fromCache - indicates whether property value should be taken frominternal cache. It can be ignored if properties caching is notsupported by underlying implementation. the value that will be returned bySystem.getProperty() call for the corresponding dynamicproperty. |
|
|