Class CoreProperties
java.lang.Object
org.castor.core.util.AbstractProperties
org.castor.core.CoreProperties
- Direct Known Subclasses:
CoreConfiguration
Properties of core modul.
- Since:
- 1.1.3
- Version:
- $Id: Configuration.java,v 1.8 2006/03/08 17:25:52 jens Exp $
- Author:
- Ralf Joachim
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty listing all availableMappingLoaderimplementations (org.castor.mapping.Loaders). -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CoreProperties(ClassLoader application, ClassLoader domain) Construct properties that uses the specified class loaders. -
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.
-
Field Details
-
MAPPING_LOADER_FACTORIES
Property listing all availableMappingLoaderimplementations (org.castor.mapping.Loaders).- See Also:
-
-
Constructor Details
-
CoreProperties
public CoreProperties()Default constructor. Application and domain class loaders will be initialized to the one used to load this class. No parent properties will be set.
Note: This constructor is not intended for public use. Use one of the newInstance() methods of the modul specific properties instead. -
CoreProperties
Construct properties that uses the specified class loaders. No parent properties will be set.
Note: This constructor is not intended for public use. Use one of the newInstance() methods of the modul specific properties instead.- Parameters:
domain- Classloader to be used for all domain objects.app- Classloader to be used for all classes of Castor and its required libraries.
-