ma.glasnost.orika
Class MappingContext.Factory

java.lang.Object
  extended by ma.glasnost.orika.MappingContext.Factory
All Implemented Interfaces:
MappingContextFactory
Enclosing class:
MappingContext

public static class MappingContext.Factory
extends Object
implements MappingContextFactory


Constructor Summary
MappingContext.Factory()
           
 
Method Summary
 MappingContext getContext()
          Gets an available instance of MappingContext
 Map<Object,Object> getGlobalProperties()
           
 void release(MappingContext context)
          Allows for implementations that reuse objects to clean-up/clear any resources associated with the particular context instance once it is no longer needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingContext.Factory

public MappingContext.Factory()
Method Detail

getContext

public MappingContext getContext()
Description copied from interface: MappingContextFactory
Gets an available instance of MappingContext

Specified by:
getContext in interface MappingContextFactory
Returns:
an instance of MappingContext

release

public void release(MappingContext context)
Description copied from interface: MappingContextFactory
Allows for implementations that reuse objects to clean-up/clear any resources associated with the particular context instance once it is no longer needed.

Specified by:
release in interface MappingContextFactory
Parameters:
context - the context to be recycled

getGlobalProperties

public Map<Object,Object> getGlobalProperties()
Specified by:
getGlobalProperties in interface MappingContextFactory
Returns:
a reference to the global properties map for this mapping context factory; any properties set here are available from any individual MappingContext created by this factory.


Copyright © 2013 Glasnost. All Rights Reserved.