Class CastorProperties
java.lang.Object
org.castor.core.util.AbstractProperties
org.castor.core.util.CastorProperties
Properties class holding user properties.
- Since:
- 1.1.3
- Version:
- $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
- Author:
- Ralf Joachim
-
Constructor Summary
ConstructorsConstructorDescriptionCastorProperties(AbstractProperties parent) Construct properties with given parent. -
Method Summary
Methods inherited from class AbstractProperties
get, getApplicationClassLoader, getBoolean, getBoolean, getClass, getClassArray, getDomainClassLoader, getInteger, getInteger, getObject, getObjectArray, getString, getString, getStringArray, loadDefaultProperties, loadUserProperties, put, removeModifier and TypeMethodDescriptionprotected ObjectSearches for the property with the specified key in this property map.final ClassLoaderGet classloader to be used for all classes of Castor and its required libraries.final BooleangetBoolean(String key) Searches for the property with the specified key in this property map.final booleangetBoolean(String key, boolean defaultValue) Searches for the property with the specified key in this property map.final ClassgetClass(String key, ClassLoader loader) Searches for the property with the specified key in this property map.final Class[]getClassArray(String key, ClassLoader loader) Searches for the property with the specified key in this property map.final ClassLoaderGet classloader to be used for all domain objects that are marshalled/unmarshalled or loaded from the database.final IntegergetInteger(String key) Searches for the property with the specified key in this property map.final intgetInteger(String key, int defaultValue) Searches for the property with the specified key in this property map.final ObjectSearches for the property with the specified key in this property map.final Object[]getObjectArray(String key, ClassLoader loader) Searches for the property with the specified key in this property map.final StringSearches for the property with the specified key in this property map.final StringSearches for the property with the specified key in this property map.final String[]getStringArray(String key) Searches for the property with the specified key in this property map.protected voidloadDefaultProperties(String path, String filename) Load module properties from default locations.protected voidloadUserProperties(String filename) Load common user properties from classpath root and current working directory.final ObjectPut given value associated with given key into the properties map of this properties.final ObjectRemove any value previously associated with the given key from this properties.
-
Constructor Details
-
CastorProperties
Construct properties with given parent. Application and domain class loaders will be initialized to the ones of the parent.
Note: This constructor is not intended for public use. Use one of the newInstance() methods instead.- Parameters:
parent- Parent properties.
-