|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Config
| Method Summary | ||
|---|---|---|
|
adaptSettings(java.lang.String domain,
boolean inherit,
java.lang.Class<T> iface)
This method creates a live mapping of this config's source properties to a specified interface. |
|
Config |
clone()
Returns a config object which is supported by the same properties and which uses the same class loader. |
|
Config |
forClassLoader(java.lang.ClassLoader classLoader)
Returns a config object which is supported by the same properties as this one but using the specified class loader. |
|
java.lang.ClassLoader |
getClassLoader()
The classloader with which this config was constructed. |
|
ConfigPolicy |
getPolicy()
Returns the policy which is currently in effect for this config. |
|
java.lang.String |
getProperty(java.lang.String name)
Obtains current value of a specfied propery. |
|
ConfigSource |
getSource()
|
|
void |
setPolicy(ConfigPolicy policy)
Sets the policy. |
|
| Method Detail |
|---|
void setPolicy(ConfigPolicy policy)
policy - the policy to use for this config, or null for a default
policyConfigPolicy getPolicy()
java.lang.ClassLoader getClassLoader()
ConfigSource getSource()
<T> T adaptSettings(java.lang.String domain,
boolean inherit,
java.lang.Class<T> iface)
throws java.lang.IllegalArgumentException
T - the interface type being implementeddomain - a dot separated prefix which identifies the values which
should support the interface's implementation, may be nullinherit - true if values should be inherited from parent domains, false
otherwiseiface - the interface to implement
java.lang.IllegalArgumentException - if the supplied class is not an interface
java.lang.String getProperty(java.lang.String name)
throws ProntoConfigException
name - the name of the property to be returned, not null
ProntoConfigException - if the properties could not be accessed and the policy is to
throw exceptionsConfig forClassLoader(java.lang.ClassLoader classLoader)
classLoader - the class loader to be used to load settings classes.
Config clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||