public class

IntroductionInfoSupport

extends Object
implements Serializable IntroductionInfo
java.lang.Object
   ↳ org.springframework.aop.support.IntroductionInfoSupport
Known Direct Subclasses

Class Overview

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.

Summary

Fields
protected final Set<Class> publishedInterfaces
Public Constructors
IntroductionInfoSupport()
Public Methods
Class[] getInterfaces()
Return the additional interfaces introduced by this Advisor or Advice.
boolean implementsInterface(Class ifc)
Check whether the specified interfaces is a published introduction interface.
void suppressInterface(Class intf)
Suppress the specified interface, which may have been autodetected due to the delegate implementing it.
Protected Methods
void implementInterfacesOnObject(Object delegate)
Publish all interfaces that the given delegate implements at the proxy level.
final boolean isMethodOnIntroducedInterface(MethodInvocation mi)
Is this method on an introduced interface?
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.aop.IntroductionInfo

Fields

protected final Set<Class> publishedInterfaces

Public Constructors

public IntroductionInfoSupport ()

Public Methods

public Class[] getInterfaces ()

Return the additional interfaces introduced by this Advisor or Advice.

Returns
  • the introduced interfaces

public boolean implementsInterface (Class ifc)

Check whether the specified interfaces is a published introduction interface.

Parameters
ifc the interface to check
Returns
  • whether the interface is part of this introduction

public void suppressInterface (Class intf)

Suppress the specified interface, which may have been autodetected due to the delegate implementing it. Call this method to exclude internal interfaces from being visible at the proxy level.

Does nothing if the interface is not implemented by the delegate.

Parameters
intf the interface to suppress

Protected Methods

protected void implementInterfacesOnObject (Object delegate)

Publish all interfaces that the given delegate implements at the proxy level.

Parameters
delegate the delegate object

protected final boolean isMethodOnIntroducedInterface (MethodInvocation mi)

Is this method on an introduced interface?

Parameters
mi the method invocation
Returns
  • whether the invoked method is on an introduced interface