org.springframework.aop.support
Class IntroductionInfoSupport

java.lang.Object
  extended by org.springframework.aop.support.IntroductionInfoSupport
All Implemented Interfaces:
Serializable, IntroductionInfo
Direct Known Subclasses:
DelegatingIntroductionInterceptor

public class IntroductionInfoSupport
extends Object
implements IntroductionInfo, Serializable

Support for implementations of IntroductionInfo.

Allows subclasses to conveniently add all interfaces from a given object, and to suppress interfaces that should not be added. Also allows for querying all introduced interfaces.

Author:
Rod Johnson
See Also:
Serialized Form

Field Summary
protected  Log logger
           
protected  Set publishedInterfaces
          Set of Class
 
Constructor Summary
IntroductionInfoSupport()
           
 
Method Summary
 Class[] getInterfaces()
          Return the additional interfaces introduced by this Advisor or Advice.
protected  void implementInterfacesOnObject(Object delegate)
           
 boolean implementsInterface(Class intf)
           
protected  boolean isMethodOnIntroducedInterface(MethodInvocation mi)
          Is this method on an introduced interface?
 void suppressInterface(Class intf)
          Suppress the specified interface, which will have been autodetected due to its implementation by the delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger

publishedInterfaces

protected Set publishedInterfaces
Set of Class

Constructor Detail

IntroductionInfoSupport

public IntroductionInfoSupport()
Method Detail

suppressInterface

public void suppressInterface(Class intf)
Suppress the specified interface, which will have been autodetected due to its implementation by the delegate. Does nothing if it's not implemented by the delegate.

Parameters:
intf - interface to suppress

getInterfaces

public Class[] getInterfaces()
Description copied from interface: IntroductionInfo
Return the additional interfaces introduced by this Advisor or Advice.

Specified by:
getInterfaces in interface IntroductionInfo

implementsInterface

public boolean implementsInterface(Class intf)

implementInterfacesOnObject

protected void implementInterfacesOnObject(Object delegate)

isMethodOnIntroducedInterface

protected final boolean isMethodOnIntroducedInterface(MethodInvocation mi)
Is this method on an introduced interface?

Parameters:
mi - method invocation
Returns:
whether the method is on an introduced interface


Copyright (c) 2002-2007 The Spring Framework Project.