com.objectwave.configuration
Class DefaultCreationStrategy
java.lang.Object
|
+--com.objectwave.configuration.DefaultCreationStrategy
- All Implemented Interfaces:
- CreationStrategy
- public class DefaultCreationStrategy
- extends java.lang.Object
- implements CreationStrategy
This class will first look for a system property called
.properties. If a Properties object exist at this key, the values will be
used from that object. If no Properites object is found, the
System.properties will be explored for values.
- Version:
- $Id: DefaultCreationStrategy.java,v 2.1 2001/11/12 17:11:58 dave_hoag Exp $
- Author:
- dhoag
Method Summary |
java.util.Properties |
getOrCreateProperties(java.lang.String categoryId,
java.lang.Object context)
Get a properties object found at categoryId.properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCreationStrategy
public DefaultCreationStrategy()
- Constructor for the DefaultCreationStrategy object
getOrCreateProperties
public java.util.Properties getOrCreateProperties(java.lang.String categoryId,
java.lang.Object context)
- Get a properties object found at categoryId.properties. If not found
then return the System.properties
- Specified by:
getOrCreateProperties
in interface CreationStrategy
- Parameters:
categoryId
- context
-
- Returns:
- Either a registered properties object in System.properties, or System.properties