| java.lang.Object org.compass.core.config.CompassSettings
All known Subclasses: org.compass.core.config.RuntimeCompassSettings,
CompassSettings | public class CompassSettings (Code) | | A set of settings that are used to configure the Compass instance.
author: kimchy |
Method Summary | |
public void | addSettings(Properties settings) | public void | addSettings(CompassSettings settings) | public CompassSettings | clear() | public CompassSettings | copy() | public ClassLoader | getClassLoader() Returns the class loader. | public ClassLoader | getDirectClassLoader() Returns the direct class loader configured for this settings. | public Properties | getProperties() | public Object | getRegistry(Object key) | public String | getSetting(String setting) | public String | getSetting(String setting, String defaultValue) | public boolean | getSettingAsBoolean(String setting, boolean defaultValue) | public Class | getSettingAsClass(String setting, Class clazz) | public Class | getSettingAsClass(String setting, Class clazz, ClassLoader classLoader) | public double | getSettingAsDouble(String setting, double defaultValue) | public float | getSettingAsFloat(String setting, float defaultValue) | public int | getSettingAsInt(String setting, int defaultValue) | public long | getSettingAsLong(String setting, long defaultValue) | public Map<String, CompassSettings> | getSettingGroups(String settingPrefix) | public Collection | keySet() | public Object | removeRegistry(Object key) | public CompassSettings | setBooleanSetting(String setting, boolean value) | void | setClassLoader(ClassLoader classLoader) | public CompassSettings | setClassSetting(String setting, Class clazz) | public CompassSettings | setDoubleSetting(String setting, double value) | public CompassSettings | setFloatSetting(String setting, float value) | public CompassSettings | setGroupSettings(String settingPrefix, String groupName, String[] settings, String[] values) Sets a group of settings, sharing the same setting prefix. | public CompassSettings | setIntSetting(String setting, int value) | public CompassSettings | setLongSetting(String setting, long value) | public void | setRegistry(Object key, Object value) | public CompassSettings | setSetting(String setting, String value) | public String | toString() |
CompassSettings | public CompassSettings()(Code) | | |
getClassLoader | public ClassLoader getClassLoader()(Code) | | Returns the class loader. If none is defined, return the thread context class loader.
|
getDirectClassLoader | public ClassLoader getDirectClassLoader()(Code) | | Returns the direct class loader configured for this settings. null
if none is defined.
|
getRegistry | public Object getRegistry(Object key)(Code) | | ADANCE: An internal compass global registry
|
getSettingAsBoolean | public boolean getSettingAsBoolean(String setting, boolean defaultValue)(Code) | | |
getSettingAsDouble | public double getSettingAsDouble(String setting, double defaultValue)(Code) | | |
getSettingAsFloat | public float getSettingAsFloat(String setting, float defaultValue)(Code) | | |
getSettingAsInt | public int getSettingAsInt(String setting, int defaultValue)(Code) | | |
getSettingAsLong | public long getSettingAsLong(String setting, long defaultValue)(Code) | | |
removeRegistry | public Object removeRegistry(Object key)(Code) | | ADVANCE: An internal compass global registry
|
setGroupSettings | public CompassSettings setGroupSettings(String settingPrefix, String groupName, String[] settings, String[] values)(Code) | | Sets a group of settings, sharing the same setting prefix. The provided
settings are appended to the settingPrefix, and the matching values are
set.
The constructed setting is: settingPrefix + "." + groupName + "." + settings[i].
Parameters: settingPrefix - The prefix used for all settings Parameters: groupName - The name of the setting group Parameters: settings - The settings name appended to settingsPrefix + "." + groupName + "." Parameters: values - The values of the settings matched against the settings parameters This settings instance for method chaining |
setRegistry | public void setRegistry(Object key, Object value)(Code) | | ADVANCE: An internal compass global registry
|
|
|