From: <kab...@jb...> - 2006-05-16 08:44:03
|
"jkharness87" wrote : Brian - | 3. Is there any way, that you know of, through the aop notation in jboss-aop.xml to instruct jboss-aop to instrument all field access for a package name that starts with, for instance, com.jtv no matter how deep the package structure goes? I'd like to not have to declare com.jtv.bo.*, com.jtv.services.*, etc. | You can use a wildcard in your pointcut expression, this will match zero or more characters. A few examples | field(java.lang.String org.acme.*->test) | field(java.lang.String org.acme.*->*) | field(* org.acme.*->*) | The first will match all fields called "test" of type String in any class within any subpackage of org.acme (so it would match org.acme.Blah and org.acme.sub.package.SomeClass) The second will follow the same class/package rules but match all fields of type String regardless of the name. The third will match all fields of all classes under org.acme regardless of their name or type View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943754#3943754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943754 |