Package com.aspectran.core.context.rule
Class JoinpointRule
- java.lang.Object
-
- com.aspectran.core.context.rule.JoinpointRule
-
public class JoinpointRule extends java.lang.ObjectA join point is the specific point in the application such as method execution, exception handling, injecting settings values etc. In Aspectran AOP a join points is always the execution of a method.<aspect id="sampleAspect" order="0" isolated="true"> <joinpoint> methods: [ "GET" "POST" "PATCH" "PUT" "DELETE" ] headers: [ "Origin" ] pointcut: { type: "wildcard" +: "/a/b@sample.bean1^method1" +: "/x/y@sample.bean2^method1" -: "/a/b/c@sample.bean3^method1" -: "/x/y/z@sample.bean4^method1" } pointcut: { type: "regexp" include: { translet: "/a/b" bean: "sample.bean1" method: "method1" } exclude: { translet: "/a/b/c" bean: "sample.bean3" method: "method1" } } </joinpoint> <settings> </settings> <advice> </advice> <exception> </exception> <aspect>
-
-
Constructor Summary
Constructors Constructor Description JoinpointRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getHeaders()JoinpointParametersgetJoinpointParameters()JoinpointTargetTypegetJoinpointTargetType()MethodType[]getMethods()PointcutRulegetPointcutRule()static JoinpointRulenewInstance()voidsetHeaders(java.lang.String[] headers)voidsetJoinpointTargetType(JoinpointTargetType joinpointTargetType)voidsetMethods(MethodType[] methods)voidsetPointcutRule(PointcutRule pointcutRule)java.lang.StringtoString()static voidupdateHeaders(JoinpointRule joinpointRule, java.lang.String[] headers)static voidupdateJoinpoint(JoinpointRule joinpointRule, JoinpointParameters joinpointParameters)static voidupdateJoinpoint(JoinpointRule joinpointRule, java.lang.String apon)static voidupdateJoinpointTargetType(JoinpointRule joinpointRule, java.lang.String target)static voidupdateMethods(JoinpointRule joinpointRule, java.lang.String[] methods)static voidupdatePointcutRule(JoinpointRule joinpointRule, PointcutParameters pointcutParameters)
-
-
-
Method Detail
-
getJoinpointTargetType
public JoinpointTargetType getJoinpointTargetType()
-
setJoinpointTargetType
public void setJoinpointTargetType(JoinpointTargetType joinpointTargetType)
-
getMethods
public MethodType[] getMethods()
-
setMethods
public void setMethods(MethodType[] methods)
-
getHeaders
public java.lang.String[] getHeaders()
-
setHeaders
public void setHeaders(java.lang.String[] headers)
-
getPointcutRule
public PointcutRule getPointcutRule()
-
setPointcutRule
public void setPointcutRule(PointcutRule pointcutRule)
-
getJoinpointParameters
public JoinpointParameters getJoinpointParameters()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newInstance
public static JoinpointRule newInstance()
-
updateJoinpoint
public static void updateJoinpoint(JoinpointRule joinpointRule, java.lang.String apon) throws IllegalRuleException
- Throws:
IllegalRuleException
-
updateJoinpoint
public static void updateJoinpoint(JoinpointRule joinpointRule, JoinpointParameters joinpointParameters) throws IllegalRuleException
- Throws:
IllegalRuleException
-
updateJoinpointTargetType
public static void updateJoinpointTargetType(JoinpointRule joinpointRule, java.lang.String target)
-
updateMethods
public static void updateMethods(JoinpointRule joinpointRule, java.lang.String[] methods)
-
updateHeaders
public static void updateHeaders(JoinpointRule joinpointRule, java.lang.String[] headers)
-
updatePointcutRule
public static void updatePointcutRule(JoinpointRule joinpointRule, PointcutParameters pointcutParameters) throws IllegalRuleException
- Throws:
IllegalRuleException
-
-