Class AspectRule

java.lang.Object
com.aspectran.core.context.rule.AspectRule
All Implemented Interfaces:
BeanReferenceable

public class AspectRule extends Object implements BeanReferenceable
An aspect is a class that implements enterprise application concerns that cut across multiple classes, such as transaction management. Aspects can be a bean configured through Aspectran configuration.
 <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>