org.compass.core.util.proxy.extractor
Class HibernateProxyExtractor

java.lang.Object
  extended by org.compass.core.util.proxy.extractor.HibernateProxyExtractor
All Implemented Interfaces:
CompassConfigurable, ProxyExtractor

public class HibernateProxyExtractor
extends Object
implements ProxyExtractor

Uses Hibernate HibernateProxyHelper.getClassWithoutInitializingProxy(Object) in order to get a class wrapped by a HibernateProxy.

Author:
kimchy

Constructor Summary
HibernateProxyExtractor()
           
 
Method Summary
 void configure(CompassSettings settings)
          Configure using the given settings.
 Class getTargetClass(Object obj)
          Returns the actual class of the given object.
 Object initalizeProxy(Object obj)
          Initializes the proxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateProxyExtractor

public HibernateProxyExtractor()
Method Detail

configure

public void configure(CompassSettings settings)
               throws CompassException
Description copied from interface: CompassConfigurable
Configure using the given settings.

Specified by:
configure in interface CompassConfigurable
Parameters:
settings - The settings for the configured object
Throws:
CompassException

getTargetClass

public Class getTargetClass(Object obj)
Description copied from interface: ProxyExtractor
Returns the actual class of the given object.

Specified by:
getTargetClass in interface ProxyExtractor

initalizeProxy

public Object initalizeProxy(Object obj)
Description copied from interface: ProxyExtractor
Initializes the proxy.

Specified by:
initalizeProxy in interface ProxyExtractor


Copyright (c) 2004-2009 The Compass Project.