com.objectwave.configuration
Class PropertyObjects

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

public class PropertyObjects
extends java.lang.Object

Hold on to the list of property that we create.

Version:
$Id: PropertyObjects.java,v 2.2 2002/07/31 15:55:22 dave_hoag Exp $
Author:
dhoag

Nested Class Summary
static class PropertyObjects.Test
           
 
Constructor Summary
PropertyObjects()
          Constructor for the PropertyObjects object
 
Method Summary
protected  void addDetail(java.lang.Class context, java.lang.String categoryId, java.lang.Object propertyDetail)
          Add the propertyDetail parameter to some internal collection using the context and categoryId as keys.
 void addDetail(PropertySource context, java.lang.String categoryId, java.lang.Object propertyDetail)
          Allow configuration services to add detail objects that are not created by this instance.
protected  java.lang.Object createDetail(PropertySource context, java.lang.String categoryId)
           
protected  java.lang.Class getConfigurationClass(PropertySource context, java.lang.String categoryId)
          Gets the type to create for the specified categoryId
 java.lang.Object getDetail(PropertySource context, java.lang.String categoryId)
          Gets
static PropertyObjects getInstance()
          Gets
 boolean hasDetail(PropertySource context, java.lang.String categoryId)
           
protected  void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyObjects

public PropertyObjects()
Constructor for the PropertyObjects object

Method Detail

getInstance

public static PropertyObjects getInstance()
Gets

Returns:
The Instance value

getDetail

public java.lang.Object getDetail(PropertySource context,
                                  java.lang.String categoryId)
                           throws NotFoundException,
                                  ConfigurationException
Gets

Parameters:
context -
categoryId -
Returns:
The Detail value
Throws:
NotFoundException
ConfigurationException

getConfigurationClass

protected java.lang.Class getConfigurationClass(PropertySource context,
                                                java.lang.String categoryId)
                                         throws ConfigurationException
Gets the type to create for the specified categoryId

Parameters:
context -
categoryId -
Returns:
The ConfigurationClass value
Throws:
ConfigurationException

hasDetail

public boolean hasDetail(PropertySource context,
                         java.lang.String categoryId)
                  throws ConfigurationException
Parameters:
context -
categoryId -
Returns:
Throws:
ConfigurationException

initialize

protected void initialize()

createDetail

protected java.lang.Object createDetail(PropertySource context,
                                        java.lang.String categoryId)
                                 throws ConfigurationException
Parameters:
context -
categoryId -
Returns:
Throws:
ConfigurationException

addDetail

public void addDetail(PropertySource context,
                      java.lang.String categoryId,
                      java.lang.Object propertyDetail)
               throws ConfigurationException
Allow configuration services to add detail objects that are not created by this instance.

Parameters:
context - The feature to be added to the Detail attribute
categoryId - The feature to be added to the Detail attribute
propertyDetail - The feature to be added to the Detail attribute
Throws:
ConfigurationException

addDetail

protected void addDetail(java.lang.Class context,
                         java.lang.String categoryId,
                         java.lang.Object propertyDetail)
Add the propertyDetail parameter to some internal collection using the context and categoryId as keys.

Parameters:
context - Likely the class of the property object.
categoryId - The category for which we are an instance.
propertyDetail - The object to remember.