scriptella.spi.support
Class MapParametersCallback

java.lang.Object
  extended by scriptella.spi.support.MapParametersCallback
All Implemented Interfaces:
ParametersCallback

public class MapParametersCallback
extends java.lang.Object
implements ParametersCallback

Map-based parameters callback implementation.

Version:
1.0
Author:
Fyodor Kupolov

Constructor Summary
MapParametersCallback(java.util.Map map)
           
 
Method Summary
 java.lang.Object getParameter(java.lang.String name)
          Returns the value of parameter specified by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapParametersCallback

public MapParametersCallback(java.util.Map map)
Method Detail

getParameter

public java.lang.Object getParameter(java.lang.String name)
Description copied from interface: ParametersCallback
Returns the value of parameter specified by name.

The callback internally delegates a call to parent callbacks if the parameter cannot be found.

Specified by:
getParameter in interface ParametersCallback
Parameters:
name - parameter name. Providers are allowed (but not required) to ignore a case of the name parameter to comply with their internal model. For example JDBC drivers are case-insensitive to column names.
Returns:
parameter value or null if parameter doesn't exist.


Copyright © Copyright 2006-2009 The Scriptella Project Team.