public class JoinpointRule
extends java.lang.Object
<aspect id="sampleAspect" order="0" isolated="true"> <joinpoint target="translet"> 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 | Description |
---|---|
JoinpointRule() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String[] |
getHeaders() |
|
JoinpointParameters |
getJoinpointParameters() |
|
JoinpointTargetType |
getJoinpointTargetType() |
|
MethodType[] |
getMethods() |
|
PointcutRule |
getPointcutRule() |
|
static JoinpointRule |
newInstance() |
|
void |
setHeaders(java.lang.String[] headers) |
|
void |
setJoinpointTargetType(JoinpointTargetType joinpointTargetType) |
|
void |
setMethods(MethodType[] methods) |
|
void |
setPointcutRule(PointcutRule pointcutRule) |
|
java.lang.String |
toString() |
|
static void |
updateHeaders(JoinpointRule joinpointRule,
java.lang.String[] headers) |
|
static void |
updateJoinpoint(JoinpointRule joinpointRule,
JoinpointParameters joinpointParameters) |
|
static void |
updateJoinpoint(JoinpointRule joinpointRule,
java.lang.String text) |
|
static void |
updateJoinpointTargetType(JoinpointRule joinpointRule,
java.lang.String type) |
|
static void |
updateMethods(JoinpointRule joinpointRule,
java.lang.String[] methods) |
|
static void |
updatePointcutRule(JoinpointRule joinpointRule,
PointcutParameters pointcutParameters) |
public JoinpointTargetType getJoinpointTargetType()
public void setJoinpointTargetType(JoinpointTargetType joinpointTargetType)
public MethodType[] getMethods()
public void setMethods(MethodType[] methods)
public java.lang.String[] getHeaders()
public void setHeaders(java.lang.String[] headers)
public PointcutRule getPointcutRule()
public void setPointcutRule(PointcutRule pointcutRule)
public JoinpointParameters getJoinpointParameters()
public java.lang.String toString()
toString
in class java.lang.Object
public static JoinpointRule newInstance()
public static void updateJoinpoint(JoinpointRule joinpointRule, java.lang.String text) throws IllegalRuleException
IllegalRuleException
public static void updateJoinpoint(JoinpointRule joinpointRule, JoinpointParameters joinpointParameters) throws IllegalRuleException
IllegalRuleException
public static void updateJoinpointTargetType(JoinpointRule joinpointRule, java.lang.String type)
public static void updateMethods(JoinpointRule joinpointRule, java.lang.String[] methods)
public static void updateHeaders(JoinpointRule joinpointRule, java.lang.String[] headers)
public static void updatePointcutRule(JoinpointRule joinpointRule, PointcutParameters pointcutParameters) throws IllegalRuleException
IllegalRuleException
Copyright © 2008–2018 The Aspectran Project. All rights reserved.