|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.aop.support.AbstractExpressionPointcut
org.springframework.aop.aspectj.ConfluenceAspectJExpressionPointcut
public final class ConfluenceAspectJExpressionPointcut
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.
PointcutClassLoaderProcessor,
Serialized Form| Field Summary |
|---|
| Fields inherited from interface org.springframework.aop.ClassFilter |
|---|
TRUE |
| Fields inherited from interface org.springframework.aop.Pointcut |
|---|
TRUE |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.springframework.aop.support.AbstractExpressionPointcut |
|---|
getExpression, getLocation, onSetExpression, setExpression, setLocation |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfluenceAspectJExpressionPointcut()
public ConfluenceAspectJExpressionPointcut(ClassLoader classLoader)
classLoader - Classloader to use for class resolution during pointcut match processing
public ConfluenceAspectJExpressionPointcut(Set supportedPrimitives,
ClassLoader classLoader)
supportedPrimitives - Set of PointcutPrimitive
instancesclassLoader - Classloader to use for class resolution during pointcut match processing
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 pointcut| Method Detail |
|---|
public 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.Pointcutpublic org.springframework.aop.MethodMatcher getMethodMatcher()
getMethodMatcher in interface org.springframework.aop.Pointcutpublic 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.MethodMatcherpublic boolean isRuntime()
isRuntime in interface org.springframework.aop.MethodMatcher
public boolean matches(Method method,
Class targetClass,
Object[] args)
matches in interface org.springframework.aop.MethodMatcherpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||