public final class ConfluenceAspectJExpressionPointcut
extends org.springframework.aop.support.AbstractExpressionPointcut
implements org.springframework.aop.ClassFilter, org.springframework.aop.IntroductionAwareMethodMatcher, org.springframework.beans.factory.BeanFactoryAware
Pointcut
implementation
that uses the AspectJ weaver to evaluate a pointcut expression.
The pointcut expression value is an AspectJ expression. This can reference other pointcuts and use composition and other operations.
Naturally, as this is to be processed by Spring AOP's proxy-based model, only method execution pointcuts are supported.
ATLASSIAN: This is a duplicate of Spring's AspectJExpressionPointcut
v4.2.3 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() |
ConfluenceAspectJExpressionPointcut(Class<?> declarationScope,
String[] paramNames,
Class<?>[] paramTypes)
Create a new AspectJExpressionPointcut with the given settings.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
org.springframework.aop.ClassFilter |
getClassFilter() |
protected String |
getCurrentProxiedBeanName() |
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 |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
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(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 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
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
protected String getCurrentProxiedBeanName()
Copyright © 2003–2017 Atlassian. All rights reserved.