net.mlw.vlh
Class Configuration

java.lang.Object
  extended bynet.mlw.vlh.Configuration

public class Configuration
extends Object

Holds the configuration for the value list handler.

Version:
$Revision: 1.4 $ $Date: 2005/11/23 14:18:53 $
Author:
Matthew L. Wilson

Constructor Summary
Configuration()
           
 
Method Summary
 ValueListAdapter getAdapter(String name)
          Gets the adapter with the given name.
 ValueListAdapter getDefaultAdapter()
          Gets the default adapter to pass back if none are found.
 void setAdapters(Map adapters)
          Sets the Map of adapters.
 void setDefaultAdapter(ValueListAdapter defaultAdapter)
          Sets the default adapter to pass back if none are found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configuration

public Configuration()
Method Detail

getAdapter

public ValueListAdapter getAdapter(String name)
Gets the adapter with the given name. Returns the defaultAdapter if the given name could not be found.

Parameters:
name - The name of the adapter.
Returns:
The adapter with the given name, or the default.

setAdapters

public void setAdapters(Map adapters)
Sets the Map of adapters.

Parameters:
adapters - The adapters to set.

getDefaultAdapter

public ValueListAdapter getDefaultAdapter()
Gets the default adapter to pass back if none are found.

Returns:
Returns the defaultAdapter.

setDefaultAdapter

public void setDefaultAdapter(ValueListAdapter defaultAdapter)
Sets the default adapter to pass back if none are found.

Parameters:
defaultAdapter - The defaultAdapter to set.


Copyright © 2003-2006 mlavilson. All Rights Reserved.