| java.lang.Object com.sun.cdc.config.PropertyProviderAdapter
PropertyProviderAdapter | abstract public class PropertyProviderAdapter implements PropertyProvider(Code) | | This class serves as an adapter for PropertyProvider interface.
It can be used for those property providers that cannot perform caching and
therefore do not need to implement cacheProperties() method.
|
Method Summary | |
public boolean | cacheProperties() Tells underlying implementation to cache values of all the properties
corresponding to this particular class. | abstract 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.
Always returns false in this adapter.
true on success, false otherwise |
getValue | abstract 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. |
|
|