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

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

public class ProxyExtractorHelper
extends Object
implements CompassConfigurable

A helper class that based on which jars exists in the classpath, tries to get the actual class out of an object.

Order in which libraries are used: SpringProxyExtractor, HibernateProxyExtractor.

Author:
kimchy

Constructor Summary
ProxyExtractorHelper()
           
 
Method Summary
 void configure(CompassSettings settings)
          Configure using the given settings.
 Class getTargetClass(Object obj)
           
 Object initializeProxy(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyExtractorHelper

public ProxyExtractorHelper()
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)

initializeProxy

public Object initializeProxy(Object obj)


Copyright (c) 2004-2009 The Compass Project.