ProceedingJoinPoint interface
wrapping an AOP Alliance org.aopalliance.intercept.MethodInvocation .Note
The getThis() method returns the current Spring AOP proxy.
The getTarget() method returns the current Spring AOP target (which may be
null if there is no target instance) as a plain POJO without any advice.
If you want to call the object and have the advice take effect, use getThis().
A common example is casting the object to an introduced interface in the implementation of
an introduction. There is no such distinction between target and proxy in AspectJ itself.
| Modifier and Type | Class and Description |
|---|---|
| private class | MethodInvocationProceedingJoinPoint.MethodSignatureImpl
Lazily initialized MethodSignature. |
| private class | MethodInvocationProceedingJoinPoint.SourceLocationImpl
Lazily initialized SourceLocation. |
| Modifier and Type | Field and Description |
|---|---|
| private Object[] | |
| private final ProxyMethodInvocation | |
| private static final ParameterNameDiscoverer | |
| private Signature | signature
Lazily initialized signature object. |
| private SourceLocation | sourceLocation
Lazily initialized source location object. |
| Access | Constructor and Description |
|---|---|
| public | MethodInvocationProceedingJoinPoint(ProxyMethodInvocation
the Spring ProxyMethodInvocation object methodInvocation)Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object. |
| Modifier and Type | Method and Description |
|---|---|
| public Object[] | |
| public int | getId()
Implements org. |
| public String | getKind()
Implements org. |
| public Signature | getSignature()
Implements org. getStaticPart().getSignature() returns the same object
|
| public SourceLocation | getSourceLocation()
Implements org. |
| public JoinPoint. | |
| public Object | |
| public Object | |
| public Object | proceed()
Implements org. |
| public Object | proceed(Object[]
the arguments to proceed with arguments)Implements org. |
| public void | set$AroundClosure(AroundClosure
the around closure to associate with this joinpoint aroundClosure)Implements org. |
| public String | |
| public String | |
| public String | toString()
Overrides java. Implements org. |
| args | back to summary |
|---|---|
| private Object[] args
| |
| methodInvocation | back to summary |
|---|---|
| private final ProxyMethodInvocation methodInvocation | |
| parameterNameDiscoverer | back to summary |
|---|---|
| private static final ParameterNameDiscoverer parameterNameDiscoverer | |
| signature | back to summary |
|---|---|
| private Signature signature Lazily initialized signature object. | |
| sourceLocation | back to summary |
|---|---|
| private SourceLocation sourceLocation Lazily initialized source location object. | |
| MethodInvocationProceedingJoinPoint | back to summary |
|---|---|
| public MethodInvocationProceedingJoinPoint(ProxyMethodInvocation methodInvocation) Create a new MethodInvocationProceedingJoinPoint, wrapping the given Spring ProxyMethodInvocation object.
| |
| getArgs | back to summary |
|---|---|
| public Object[] getArgs() Implements org.
| |
| getId | back to summary |
|---|---|
| public int getId() Implements org. Doc from org. Return the id for this JoinPoint.StaticPart. All JoinPoint.StaticPart
instances are assigned an id number upon creation. For each advised type
the id numbers start at 0.
| |
| getKind | back to summary |
|---|---|
| public String getKind() Implements org. Doc from org. This string is guaranteed to be interned.
| |
| getSignature | back to summary |
|---|---|
| public Signature getSignature() Implements org. Doc from org.
| |
| getSourceLocation | back to summary |
|---|---|
| public SourceLocation getSourceLocation() Implements org. Doc from org. Returns the source location corresponding to the join point. If there is no source location available, returns null.
| |
| getStaticPart | back to summary |
|---|---|
| public JoinPoint. Implements org.
| |
| getTarget | back to summary |
|---|---|
| public Object getTarget() Implements org. Returns the Spring AOP target. May be
| |
| getThis | back to summary |
|---|---|
| public Object getThis() Implements org. Returns the Spring AOP proxy. Cannot be
| |
| proceed | back to summary |
|---|---|
| public Object proceed() throws Throwable Implements org. Doc from org. Proceed with the next advice or target method invocation | |
| proceed | back to summary |
|---|---|
| public Object proceed(Object[] arguments) throws Throwable Implements org. Doc from org. Proceed with the next advice or target method invocation. Unlike code style, proceed(..) in annotation style places different requirements on the parameters passed to it. The proceed(..) call takes, in this order:
| |
| set$AroundClosure | back to summary |
|---|---|
| public void set$AroundClosure(AroundClosure aroundClosure) Implements org. Doc from org. The joinpoint needs to know about its closure so that proceed can delegate to closure.run(). This internal method should not be called directly, and won't be visible to the end-user when packed in a jar (synthetic method).
| |
| toLongString | back to summary |
|---|---|
| public String toLongString() Implements org.
| |
| toShortString | back to summary |
|---|---|
| public String toShortString() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private volatile String[] |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | appendTypes(StringBuilder sb, Class<?>[] types, boolean includeArgs, boolean useLongReturnAndArgumentTypeName)
|
| public Class | getDeclaringType()
Implements org. Returns a |
| public String | getDeclaringTypeName()
Implements org. |
| public Class | |
| public Method | |
| public int | getModifiers()
Implements org. |
| public String | |
| public String[] | |
| public Class | |
| public Class | |
| public String | |
| public String | |
| public String | toString()
Overrides java. Implements org. |
| private String | toString(boolean includeModifier, boolean includeReturnTypeAndArgs, boolean useLongReturnAndArgumentTypeName, boolean useLongTypeName)
|
| parameterNames | back to summary |
|---|---|
| private volatile String[] parameterNames
| |
| MethodSignatureImpl | back to summary |
|---|---|
| private MethodSignatureImpl() | |
| appendType | back to summary |
|---|---|
| private void appendType(StringBuilder sb, Class<?> type, boolean useLongTypeName) | |
| appendTypes | back to summary |
|---|---|
| private void appendTypes(StringBuilder sb, Class<?>[] types, boolean includeArgs, boolean useLongReturnAndArgumentTypeName) | |
| getDeclaringType | back to summary |
|---|---|
| public Class Implements org. Doc from org. Returns a For consistency with | |
| getDeclaringTypeName | back to summary |
|---|---|
| public String getDeclaringTypeName() Implements org. Doc from org. This is equivalent to calling getDeclaringType().getName(), but caches the result for greater efficiency. | |
| getExceptionTypes | back to summary |
|---|---|
| public Class Implements org.
| |
| getMethod | back to summary |
|---|---|
| public Method getMethod() Implements org.
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements org. Doc from org. Returns the modifiers on this signature represented as an int. Use
the constants and helper methods defined on
// check if this signature is public
java.lang.reflect.Modifier.isPublic(sig.getModifiers());
// print out the modifiers
java.lang.reflect.Modifier.toString(sig.getModifiers());
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org.
| |
| getParameterNames | back to summary |
|---|---|
| public String[] getParameterNames() Implements org. | |
| getParameterTypes | back to summary |
|---|---|
| public Class Implements org.
| |
| getReturnType | back to summary |
|---|---|
| public Class Implements org.
| |
| toLongString | back to summary |
|---|---|
| public String toLongString() Implements org.
| |
| toShortString | back to summary |
|---|---|
| public String toShortString() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements org. Doc from java. Returns a string representation of the object. | |
| toString | back to summary |
|---|---|
| private String toString(boolean includeModifier, boolean includeReturnTypeAndArgs, boolean useLongReturnAndArgumentTypeName, boolean useLongTypeName) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public String | |
| public int | |
| public Class |
| SourceLocationImpl | back to summary |
|---|---|
| private SourceLocationImpl() | |
| getColumn | back to summary |
|---|---|
| public int getColumn() Implements org. Deprecated
| |
| getFileName | back to summary |
|---|---|
| public String getFileName() Implements org.
| |
| getLine | back to summary |
|---|---|
| public int getLine() Implements org.
| |
| getWithinType | back to summary |
|---|---|
| public Class Implements org.
| |