org.jboss.security.mapping
Class MappingContext<T>

java.lang.Object
  extended by 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
MappingContext(List<MappingProvider<T>> mod)
           
 
Method Summary
 MappingResult<T> getMappingResult()
           
 List<MappingProvider<T>> getModules()
          Get the set of mapping modules
 boolean hasModules()
          Optimization Step to determine if we have configured mapping modules to avoid unnecessary mapping step
 void performMapping(Map<String,Object> contextMap, T mappedObject)
          Apply mapping semantics on the passed object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 Map
mappedObject - 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


Copyright © 2009 JBoss Inc.. All Rights Reserved.