public final class ConfluenceAspectJExpressionPointcut
extends org.springframework.aop.support.AbstractExpressionPointcut
implements org.springframework.aop.ClassFilter, org.springframework.aop.IntroductionAwareMethodMatcher
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.PointcutClassLoaderProcessor
,
Serialized FormConstructor and Description |
---|
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(Class declarationScope,
String[] paramNames,
Class[] paramTypes)
Create a new AspectJExpressionPointcut with the given settings.
|
ConfluenceAspectJExpressionPointcut(Set supportedPrimitives,
ClassLoader classLoader)
Create a new AspectJExpressionPointcut with the given supported primitives.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
org.springframework.aop.ClassFilter |
getClassFilter() |
org.springframework.aop.MethodMatcher |
getMethodMatcher() |
org.aspectj.weaver.tools.PointcutExpression |
getPointcutExpression()
Return the underlying AspectJ pointcut expression.
|
int |
hashCode() |
boolean |
isRuntime() |
boolean |
matches(Class targetClass) |
boolean |
matches(Method method,
Class targetClass) |
boolean |
matches(Method method,
Class targetClass,
boolean beanHasIntroductions) |
boolean |
matches(Method method,
Class targetClass,
Object[] args) |
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() |
public ConfluenceAspectJExpressionPointcut()
public ConfluenceAspectJExpressionPointcut(ClassLoader classLoader)
classLoader
- Classloader to use for class resolution during pointcut match processingpublic ConfluenceAspectJExpressionPointcut(Set supportedPrimitives, ClassLoader classLoader)
supportedPrimitives
- Set of PointcutPrimitive
instancesclassLoader
- Classloader to use for class resolution during pointcut match processingpublic ConfluenceAspectJExpressionPointcut(Class declarationScope, String[] paramNames, Class[] paramTypes)
declarationScope
- the declaration scope for the pointcutparamNames
- the parameter names for the pointcutparamTypes
- the parameter types for the pointcutpublic void setPointcutDeclarationScope(Class pointcutDeclarationScope)
public void setParameterNames(String[] names)
public void setParameterTypes(Class[] types)
public org.springframework.aop.ClassFilter getClassFilter()
getClassFilter
in interface org.springframework.aop.Pointcut
public org.springframework.aop.MethodMatcher getMethodMatcher()
getMethodMatcher
in interface org.springframework.aop.Pointcut
public org.aspectj.weaver.tools.PointcutExpression getPointcutExpression()
public boolean matches(Class targetClass)
matches
in interface org.springframework.aop.ClassFilter
public boolean matches(Method method, Class targetClass, boolean beanHasIntroductions)
matches
in interface org.springframework.aop.IntroductionAwareMethodMatcher
public boolean matches(Method method, Class targetClass)
matches
in interface org.springframework.aop.MethodMatcher
public boolean isRuntime()
isRuntime
in interface org.springframework.aop.MethodMatcher
public boolean matches(Method method, Class targetClass, Object[] args)
matches
in interface org.springframework.aop.MethodMatcher
Copyright © 2003–2016 Atlassian. All rights reserved.