com.objectwave.configuration
Class PropertyFactory

java.lang.Object
  |
  +--com.objectwave.configuration.PropertyFactory

public class PropertyFactory
extends java.lang.Object

Locate and use the appropriate Properties source for values.

Version:
$Id: PropertyFactory.java,v 2.0 2001/06/11 15:46:53 dave_hoag Exp $
Author:
dhoag

Field Summary
 CreationStrategy creationStrategy
           
protected static PropertyFactory instance
           
 
Constructor Summary
PropertyFactory()
          Constructor for the PropertyFactory object
 
Method Summary
static PropertyFactory getInstance()
          Gets the Instance attribute of the PropertyFactory class
 java.util.Properties getOrCreateProperties(java.lang.String categoryId, java.lang.Object context)
           
 void initialize()
          For now, this only sets the default creationStrategy
 void setCreationStrategy(CreationStrategy strat)
          Sets the CreationStrategy attribute of the PropertyFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static PropertyFactory instance

creationStrategy

public CreationStrategy creationStrategy
Constructor Detail

PropertyFactory

public PropertyFactory()
Constructor for the PropertyFactory object

Method Detail

getInstance

public static PropertyFactory getInstance()
Gets the Instance attribute of the PropertyFactory class

Returns:
The Instance value

setCreationStrategy

public void setCreationStrategy(CreationStrategy strat)
Sets the CreationStrategy attribute of the PropertyFactory object

Parameters:
strat - The new CreationStrategy value

getOrCreateProperties

public java.util.Properties getOrCreateProperties(java.lang.String categoryId,
                                                  java.lang.Object context)
Parameters:
context -
categoryId -
Returns:
The OrCreateProperties value

initialize

public void initialize()
For now, this only sets the default creationStrategy