net.craftforge.reflection.managers
Class ReferenceManager<T>

java.lang.Object
  extended by net.craftforge.reflection.managers.ReferenceManager<T>

public class ReferenceManager<T>
extends Object

A reference manager takes care an object's reference structure.

Since:
13.08.2011
Author:
Christian Bick

Method Summary
static
<T> ReferenceManager<T>
getInstance(Class<T> clazz)
          Gets an instance of a reference manager for a class of objects being managed by the manager.
 T nullifyActualReferences(T object)
          Nullify all references of the given object ignoring references to virtual-primitives as strings and dates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static <T> ReferenceManager<T> getInstance(Class<T> clazz)
Gets an instance of a reference manager for a class of objects being managed by the manager.

Type Parameters:
T - The class type
Parameters:
clazz - The class
Returns:
The reference manager instance

nullifyActualReferences

public T nullifyActualReferences(T object)
Nullify all references of the given object ignoring references to virtual-primitives as strings and dates.

Parameters:
object - The object
Returns:
The object without any references


Copyright © 2011. All Rights Reserved.