Package com.aspectran.core.context.rule
Class JoinpointRule
java.lang.Object
com.aspectran.core.context.rule.JoinpointRule
A 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/[email protected]^method1" +: "/x/[email protected]^method1" -: "/a/b/[email protected]^method1" -: "/x/y/[email protected]^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 -
Method Summary
Modifier and TypeMethodDescriptionString[]
static JoinpointRule
void
setHeaders
(String[] headers) void
setJoinpointTargetType
(JoinpointTargetType joinpointTargetType) void
setMethods
(MethodType[] methods) void
setPointcutRule
(PointcutRule pointcutRule) toString()
static void
updateHeaders
(JoinpointRule joinpointRule, String[] headers) static void
updateJoinpoint
(JoinpointRule joinpointRule, JoinpointParameters joinpointParameters) static void
updateJoinpoint
(JoinpointRule joinpointRule, String apon) static void
updateJoinpointTargetType
(JoinpointRule joinpointRule, String target) static void
updateMethods
(JoinpointRule joinpointRule, String[] methods) static void
updatePointcutRule
(JoinpointRule joinpointRule, PointcutParameters pointcutParameters)
-
Constructor Details
-
JoinpointRule
public JoinpointRule()
-
-
Method Details
-
getJoinpointTargetType
-
setJoinpointTargetType
-
getMethods
-
setMethods
-
getHeaders
-
setHeaders
-
getPointcutRule
-
setPointcutRule
-
getJoinpointParameters
-
toString
-
newInstance
-
updateJoinpoint
public static void updateJoinpoint(JoinpointRule joinpointRule, String apon) throws IllegalRuleException - Throws:
IllegalRuleException
-
updateJoinpoint
public static void updateJoinpoint(@NonNull JoinpointRule joinpointRule, JoinpointParameters joinpointParameters) throws IllegalRuleException - Throws:
IllegalRuleException
-
updateJoinpointTargetType
-
updateMethods
-
updateHeaders
-
updatePointcutRule
public static void updatePointcutRule(@NonNull JoinpointRule joinpointRule, PointcutParameters pointcutParameters) throws IllegalRuleException - Throws:
IllegalRuleException
-