Package org.jboss.security.mapping
Class MappingContext<T>
- java.lang.Object
-
- org.jboss.security.mapping.MappingContext<T>
-
- Type Parameters:
T
-
public class MappingContext<T> extends Object
Generic Context used by the Mapping Framework- Since:
- Aug 24, 2006
- Version:
- $Revision$
- Author:
- Anil Saldhana
-
-
Constructor Summary
Constructors Constructor Description MappingContext(List<MappingProvider<T>> mod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingResult<T>
getMappingResult()
List<MappingProvider<T>>
getModules()
Get the set of mapping modulesboolean
hasModules()
Optimization Step to determine if we have configured mapping modules to avoid unnecessary mapping stepvoid
performMapping(Map<String,Object> contextMap, T mappedObject)
Apply mapping semantics on the passed object
-
-
-
Constructor Detail
-
MappingContext
public MappingContext(List<MappingProvider<T>> mod)
-
-
Method Detail
-
getModules
public List<MappingProvider<T>> getModules()
Get the set of mapping modules- Returns:
-
performMapping
public void performMapping(Map<String,Object> contextMap, T mappedObject)
Apply mapping semantics on the passed object- Parameters:
contextMap
- Read-only Contextual MapmappedObject
- an object on which mapping will be applied
-
getMappingResult
public MappingResult<T> getMappingResult()
- Returns:
- Result of previous mapping operation
-
hasModules
public boolean hasModules()
Optimization Step to determine if we have configured mapping modules to avoid unnecessary mapping step- Returns:
- true - at least one mapping provider is configured
-
-