org.glassfish.api.admin
Class ParameterBridge.NoMapper
java.lang.Object
org.glassfish.api.admin.ParameterBridge.NoMapper
- All Implemented Interfaces:
- ParameterBridge
- Enclosing interface:
- ParameterBridge
public static final class ParameterBridge.NoMapper
- extends java.lang.Object
- implements ParameterBridge
Provided mapper that does not change parameters names or values from the input set.
|
Method Summary |
java.util.List<java.lang.String> |
get(ParameterMap map,
java.lang.String resourceName)
Returns the parameter values as expected by the injection code when a dependency
injection annotated field or method (for instance, annotated with @Param
or @Inject) needs to be resolved. |
java.lang.String |
getOne(ParameterMap map,
java.lang.String resourceName)
Returns the parameter value as expected by the injection code when a dependency
injection annotated field or method (for instance, annotated with @Param
or @Inject) needs to be resolved. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterBridge.NoMapper
public ParameterBridge.NoMapper()
getOne
public java.lang.String getOne(ParameterMap map,
java.lang.String resourceName)
- Description copied from interface:
ParameterBridge
- Returns the parameter value as expected by the injection code when a dependency
injection annotated field or method (for instance, annotated with @Param
or @Inject) needs to be resolved.
- Specified by:
getOne in interface ParameterBridge
- Parameters:
map - is the original set of parameters as used to inject the supplemented
command.resourceName - the name of the resource as defined by the action
- Returns:
- the value used to inject the parameter identified by its resourceName
get
public java.util.List<java.lang.String> get(ParameterMap map,
java.lang.String resourceName)
- Description copied from interface:
ParameterBridge
- Returns the parameter values as expected by the injection code when a dependency
injection annotated field or method (for instance, annotated with @Param
or @Inject) needs to be resolved.
- Specified by:
get in interface ParameterBridge
- Parameters:
map - is the original set of parameters as used to inject the supplemented
command.resourceName - the name of the resource as defined by the action
- Returns:
- a list of values used to inject the parameter identified by its resourceName
Copyright © 2012 GlassFish Community. All Rights Reserved.