Class NamespaceRequestWrapper

java.lang.Object
net.sf.basedb.core.plugin.NamespaceRequestWrapper
All Implemented Interfaces:
Request

public class NamespaceRequestWrapper
extends Object
implements Request
A helper class that wraps a request object with a namespace. All parameter reading operations will be made to the specified namespace. Eg, the 'name' parameter is replaced with the namespace + dot + the original name. For example, if namespace="export" and name="toDir", the resulting name is "export.toDir". If the parameter doesn't exists, the global namespace is checked. (eg. toDir). All other methods simply forward to the same method of the parent object.

The main usage for this class is when a master plug-in needs to use other child plug-ins. By wrapping the request with an instance of this class it makes it possible to forward the request to the child plug-in without having to worry about name clashes among the children.

Since:
2.15
Author:
nicklas
See Also:
NamespaceParameterValuesWrapper, NamespacePluginParameter
Last modified
$Date $