public final class

ConfluenceAspectJExpressionPointcut

extends AbstractExpressionPointcut
implements ClassFilter IntroductionAwareMethodMatcher
java.lang.Object
   ↳ org.springframework.aop.support.AbstractExpressionPointcut
     ↳ org.springframework.aop.aspectj.ConfluenceAspectJExpressionPointcut

Class Overview

This is a duplicate of Spring's AspectJExpressionPointcut with customisations allowing the specification of a classloader to use when parsing pointcut expressions. This is needed in Confluence as the pointcut parser is expected to process classes from the plugin subsystem. These classes are not visible using the context class loader provided at context initialisation.

Summary

[Expand]
Inherited Fields
From interface org.springframework.aop.ClassFilter
From interface org.springframework.aop.MethodMatcher
From interface org.springframework.aop.Pointcut
Public Constructors
ConfluenceAspectJExpressionPointcut()
Create a new default ConfluenceAspectJExpressionPointcut using the current thread context classloader for class resolution during pointcut processing.
ConfluenceAspectJExpressionPointcut(ClassLoader classLoader)
Create a new ConfluenceAspectJExpressionPointcut using the provided classloader for class resolution during pointcut match processing
ConfluenceAspectJExpressionPointcut(Set supportedPrimitives, ClassLoader classLoader)
Create a new AspectJExpressionPointcut with the given supported primitives.
ConfluenceAspectJExpressionPointcut(Class declarationScope, String[] paramNames, Class[] paramTypes)
Create a new AspectJExpressionPointcut with the given settings.
Public Methods
boolean equals(Object other)
ClassFilter getClassFilter()
MethodMatcher getMethodMatcher()
PointcutExpression getPointcutExpression()
Return the underlying AspectJ pointcut expression.
int hashCode()
boolean isRuntime()
boolean matches(Method method, Class targetClass, Object[] args)
boolean matches(Method method, Class targetClass)
boolean matches(Class targetClass)
boolean matches(Method method, Class targetClass, boolean beanHasIntroductions)
void setParameterNames(String[] names)
Set the parameter names for the pointcut.
void setParameterTypes(Class[] types)
Set the parameter types for the pointcut.
void setPointcutDeclarationScope(Class pointcutDeclarationScope)
Set the declaration scope for the pointcut.
String toString()
[Expand]
Inherited Methods
From class org.springframework.aop.support.AbstractExpressionPointcut
From class java.lang.Object
From interface org.springframework.aop.ClassFilter
From interface org.springframework.aop.IntroductionAwareMethodMatcher
From interface org.springframework.aop.MethodMatcher
From interface org.springframework.aop.Pointcut
From interface org.springframework.aop.support.ExpressionPointcut

Public Constructors

public ConfluenceAspectJExpressionPointcut ()

Create a new default ConfluenceAspectJExpressionPointcut using the current thread context classloader for class resolution during pointcut processing.

public ConfluenceAspectJExpressionPointcut (ClassLoader classLoader)

Create a new ConfluenceAspectJExpressionPointcut using the provided classloader for class resolution during pointcut match processing

Parameters
classLoader Classloader to use for class resolution during pointcut match processing

public ConfluenceAspectJExpressionPointcut (Set supportedPrimitives, ClassLoader classLoader)

Create a new AspectJExpressionPointcut with the given supported primitives.

Parameters
supportedPrimitives Set of org.aspectj.weaver.tools.PointcutPrimitive instances
classLoader Classloader to use for class resolution during pointcut match processing

public ConfluenceAspectJExpressionPointcut (Class declarationScope, String[] paramNames, Class[] paramTypes)

Create a new AspectJExpressionPointcut with the given settings.

Parameters
declarationScope the declaration scope for the pointcut
paramNames the parameter names for the pointcut
paramTypes the parameter types for the pointcut

Public Methods

public boolean equals (Object other)

public ClassFilter getClassFilter ()

public MethodMatcher getMethodMatcher ()

public PointcutExpression getPointcutExpression ()

Return the underlying AspectJ pointcut expression.

public int hashCode ()

public boolean isRuntime ()

public boolean matches (Method method, Class targetClass, Object[] args)

public boolean matches (Method method, Class targetClass)

public boolean matches (Class targetClass)

public boolean matches (Method method, Class targetClass, boolean beanHasIntroductions)

public void setParameterNames (String[] names)

Set the parameter names for the pointcut.

public void setParameterTypes (Class[] types)

Set the parameter types for the pointcut.

public void setPointcutDeclarationScope (Class pointcutDeclarationScope)

Set the declaration scope for the pointcut.

public String toString ()