gate
Class Factory.DuplicationContext

java.lang.Object
  extended by gate.Factory.DuplicationContext
Enclosing class:
Factory

public static class Factory.DuplicationContext
extends Object

Opaque memo object passed to CustomDuplication.duplicate methods to encapsulate the state of the current duplication run. If the duplicate method itself needs to duplicate any objects it should pass this context back to Factory.duplicate(Resource,DuplicationContext).


Field Summary
(package private)  boolean active
          Whether this duplication context is part of an active duplicate call.
(package private)  IdentityHashMap<Resource,Resource> knownResources
           
 
Constructor Summary
Factory.DuplicationContext()
          Overridden to ensure no public constructor.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knownResources

IdentityHashMap<Resource,Resource> knownResources

active

boolean active
Whether this duplication context is part of an active duplicate call.

Constructor Detail

Factory.DuplicationContext

Factory.DuplicationContext()
Overridden to ensure no public constructor.