org.springframework.aop.framework
Class Cglib2AopProxy

java.lang.Object
  extended byorg.springframework.aop.framework.Cglib2AopProxy
All Implemented Interfaces:
AopProxy, java.io.Serializable

public class Cglib2AopProxy
extends java.lang.Object
implements AopProxy, java.io.Serializable

CGLIB 2 AopProxy implementation for the Spring AOP framework.

Objects of this type should be obtained through proxy factories, configured by a AdvisedSupport implementation. This class is internal to the Spring framework and need not be used directly by client code.

Proxies created using this class are threadsafe if the underlying (target) class is threadsafe.

Author:
Rod Johnson, Rob Harrop
See Also:
Serialized Form

Field Summary
protected  AdvisedSupport advised
          Config used to configure this proxy
protected static org.apache.commons.logging.Log logger
          Static to optimize serialization
 
Constructor Summary
protected Cglib2AopProxy(AdvisedSupport config)
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks to see if this CallbackFilter is the same CallbackFilter used for another proxy.
 java.lang.Object getProxy()
          Create a new Proxy object for the given object, proxying the given interface.
 java.lang.Object getProxy(java.lang.ClassLoader cl)
          Create a new Proxy object for the given object, proxying the given interface.
 int hashCode()
           
protected  boolean isEqualsMethod(java.lang.reflect.Method m)
          Is the given method the equals method?
protected static java.lang.Object massageReturnTypeIfNecessary(java.lang.Object proxy, java.lang.Object target, java.lang.Object retVal)
          Wrap a return of this if necessary to be the proxy
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.commons.logging.Log logger
Static to optimize serialization


advised

protected AdvisedSupport advised
Config used to configure this proxy

Constructor Detail

Cglib2AopProxy

protected Cglib2AopProxy(AdvisedSupport config)
                  throws AopConfigException
Throws:
AopConfigException - if the config is invalid. We try to throw an informative exception in this case, rather than let a mysterious failure happen later.
Method Detail

massageReturnTypeIfNecessary

protected static java.lang.Object massageReturnTypeIfNecessary(java.lang.Object proxy,
                                                               java.lang.Object target,
                                                               java.lang.Object retVal)
Wrap a return of this if necessary to be the proxy


isEqualsMethod

protected final boolean isEqualsMethod(java.lang.reflect.Method m)
Is the given method the equals method?


getProxy

public java.lang.Object getProxy()
Create a new Proxy object for the given object, proxying the given interface. Uses the thread context class loader.

Specified by:
getProxy in interface AopProxy

getProxy

public java.lang.Object getProxy(java.lang.ClassLoader cl)
Create a new Proxy object for the given object, proxying the given interface. Uses the given class loader.

Specified by:
getProxy in interface AopProxy

equals

public boolean equals(java.lang.Object other)
Checks to see if this CallbackFilter is the same CallbackFilter used for another proxy.


hashCode

public int hashCode()


Copyright (C) 2003-2004 The Spring Framework Project.