org.springframework.aop.support
Class IntroductionInfoSupport

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

public class IntroductionInfoSupport
extends Object
implements IntroductionInfo, Serializable

Support for implementations of IntroductionAdvice. This class allows for querying of all introduced interfaces, as well as implemented the implementsInterface() method from IntroductionAdvice. It also allows subclasses to conveniently add all interfaces from a given object, and to suppress interfaces that should not be added.

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)
          Implementation of IntroductionAdvice method
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)
Implementation of IntroductionAdvice method

See Also:
DynamicIntroductionAdvice.implementsInterface(java.lang.Class)

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) 2003-2004 The Spring Framework Project.