Please help on equivalent concept for JBoss AOP aspect -
i using jboss application server 6 , using jboss aop aspects in application.
an illustration of aspect shown below:
public class dbaspect{ public object accessdbconnection(fieldreadinvocation invocation) { homecoming dbconnection; } public object accessdbconnection((fieldwriteinvocation invocation) { throw exception; } }
currently, these advice methods applied private variable in class dbusage binding aspect.
i migrating new application server , not supporting jboss aop. so, how implement concept.
how can implement behavior. please help.
applying field get/set pointcuts private field not sound application or aspect design me. maybe refactoring application improve idea. anyway, in aspectj can utilize get()
, set()
pointcuts in order intercept field get/set actions. if want access private fields, might need utilize privileged aspect
.
jboss aop
No comments:
Post a Comment