|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.IntroductionInfoSupport
public class IntroductionInfoSupport
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.
Field Summary | |
---|---|
protected java.util.Set<java.lang.Class> |
publishedInterfaces
|
private java.util.Map<java.lang.reflect.Method,java.lang.Boolean> |
rememberedMethods
|
Constructor Summary | |
---|---|
IntroductionInfoSupport()
|
Method Summary | |
---|---|
java.lang.Class[] |
getInterfaces()
Return the additional interfaces introduced by this Advisor or Advice. |
protected void |
implementInterfacesOnObject(java.lang.Object delegate)
Publish all interfaces that the given delegate implements at the proxy level. |
boolean |
implementsInterface(java.lang.Class ifc)
Check whether the specified interfaces is a published introduction interface. |
protected boolean |
isMethodOnIntroducedInterface(MethodInvocation mi)
Is this method on an introduced interface? |
private void |
readObject(java.io.ObjectInputStream ois)
This method is implemented only to restore the logger. |
void |
suppressInterface(java.lang.Class intf)
Suppress the specified interface, which may have been autodetected due to the delegate implementing it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.util.Set<java.lang.Class> publishedInterfaces
private transient java.util.Map<java.lang.reflect.Method,java.lang.Boolean> rememberedMethods
Constructor Detail |
---|
public IntroductionInfoSupport()
Method Detail |
---|
public void suppressInterface(java.lang.Class intf)
Does nothing if the interface is not implemented by the delegate.
intf
- the interface to suppresspublic java.lang.Class[] getInterfaces()
IntroductionInfo
getInterfaces
in interface IntroductionInfo
public boolean implementsInterface(java.lang.Class ifc)
ifc
- the interface to check
protected void implementInterfacesOnObject(java.lang.Object delegate)
delegate
- the delegate objectprotected final boolean isMethodOnIntroducedInterface(MethodInvocation mi)
mi
- the method invocation
private void readObject(java.io.ObjectInputStream ois) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |