org.chwf.plugin
Class OptionLister

java.lang.Object
  |
  +--org.chwf.plugin.OptionLister
Direct Known Subclasses:
DefaultOptionLister

public abstract class OptionLister
extends java.lang.Object

An abstract superclass for custom option list retrieval for bean filters. It is used to populate data in option lists for bean properties. A custom OptionLister plugin could be defined to load option lists from a relational database rather Chrysalis XML configuration files.

Author:
Paul Strack

Field Summary
static java.lang.String OPTION_LISTER_ID
          Id for the option lister plugin in the config file.
 
Constructor Summary
protected OptionLister()
          No-op constructor.
 
Method Summary
static OptionLister getInstance()
          Returns the OptionLister object.
abstract  java.util.Map loadOptionList(java.lang.Class beanClass, java.lang.String property)
          Load the option list for a JavaBean's property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_LISTER_ID

public static final java.lang.String OPTION_LISTER_ID
Id for the option lister plugin in the config file.
Constructor Detail

OptionLister

protected OptionLister()
No-op constructor.
Method Detail

getInstance

public static OptionLister getInstance()
Returns the OptionLister object.

Returns:
The lister.

loadOptionList

public abstract java.util.Map loadOptionList(java.lang.Class beanClass,
                                             java.lang.String property)
                                      throws ConversionException
Load the option list for a JavaBean's property.

Parameters:
beanClass - The class in question.
property - The property.
Returns:
The list of options.
Throws:
ConversionException - If type conversions fail.


Copyright © 2002-2004, Paul Strack. All Rights Reserved.