|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormField 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(java.lang.ClassLoader classLoader)
Create a new ConfluenceAspectJExpressionPointcut using the provided classloader for class resolution during pointcut match processing |
|
ConfluenceAspectJExpressionPointcut(java.lang.Class declarationScope,
java.lang.String[] paramNames,
java.lang.Class[] paramTypes)
Create a new AspectJExpressionPointcut with the given settings. |
|
ConfluenceAspectJExpressionPointcut(java.util.Set supportedPrimitives,
java.lang.ClassLoader classLoader)
Create a new AspectJExpressionPointcut with the given supported primitives. |
Method Summary | |
---|---|
boolean |
equals(java.lang.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(java.lang.Class targetClass)
|
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class targetClass)
|
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class targetClass,
boolean beanHasIntroductions)
|
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class targetClass,
java.lang.Object[] args)
|
void |
setParameterNames(java.lang.String[] names)
Set the parameter names for the pointcut. |
void |
setParameterTypes(java.lang.Class[] types)
Set the parameter types for the pointcut. |
void |
setPointcutDeclarationScope(java.lang.Class pointcutDeclarationScope)
Set the declaration scope for the pointcut. |
java.lang.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(java.lang.ClassLoader classLoader)
classLoader
- Classloader to use for class resolution during pointcut match processingpublic ConfluenceAspectJExpressionPointcut(java.util.Set supportedPrimitives, java.lang.ClassLoader classLoader)
supportedPrimitives
- Set of PointcutPrimitive
instancesclassLoader
- Classloader to use for class resolution during pointcut match processingpublic ConfluenceAspectJExpressionPointcut(java.lang.Class declarationScope, java.lang.String[] paramNames, java.lang.Class[] paramTypes)
declarationScope
- the declaration scope for the pointcutparamNames
- the parameter names for the pointcutparamTypes
- the parameter types for the pointcutMethod Detail |
---|
public void setPointcutDeclarationScope(java.lang.Class pointcutDeclarationScope)
public void setParameterNames(java.lang.String[] names)
public void setParameterTypes(java.lang.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(java.lang.Class targetClass)
matches
in interface org.springframework.aop.ClassFilter
public boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass, boolean beanHasIntroductions)
matches
in interface org.springframework.aop.IntroductionAwareMethodMatcher
public boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass)
matches
in interface org.springframework.aop.MethodMatcher
public boolean isRuntime()
isRuntime
in interface org.springframework.aop.MethodMatcher
public boolean matches(java.lang.reflect.Method method, java.lang.Class targetClass, java.lang.Object[] args)
matches
in interface org.springframework.aop.MethodMatcher
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |