net.sf.beanlib.hibernate
Class UnEnhancer

java.lang.Object
  extended by net.sf.beanlib.hibernate.UnEnhancer

public class UnEnhancer
extends Object

Author:
Joe D. Velopar

Field Summary
private static String JAVASSIST_INDEXOF
           
private static String JAVASSIST_STARTWITH
           
 
Constructor Summary
private UnEnhancer()
           
 
Method Summary
static
<T> Class<T>
getActualClass(Object object)
           
private static boolean isJavassistEnhanced(Class c)
          Returns true if the given class is found to be a javassist enhanced class; false otherwise.
static
<T> Class<T>
unenhanceClass(Class c)
          Digs out the pre CGLIB/Javassist enhanced class, if any.
static
<T> T
unenhanceObject(T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVASSIST_STARTWITH

private static final String JAVASSIST_STARTWITH
See Also:
Constant Field Values

JAVASSIST_INDEXOF

private static final String JAVASSIST_INDEXOF
See Also:
Constant Field Values
Constructor Detail

UnEnhancer

private UnEnhancer()
Method Detail

isJavassistEnhanced

private static boolean isJavassistEnhanced(Class c)
Returns true if the given class is found to be a javassist enhanced class; false otherwise.


unenhanceClass

public static <T> Class<T> unenhanceClass(Class c)
Digs out the pre CGLIB/Javassist enhanced class, if any.


getActualClass

public static <T> Class<T> getActualClass(Object object)

unenhanceObject

public static <T> T unenhanceObject(T object)