[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Handling contexts in error
adrian@jboss.org
do-not-reply at jboss.com
Wed Feb 20 09:02:49 EST 2008
"adrian at jboss.org" wrote :
|
| | <bind pointcut="execution(@com.acme.Singleton->new())">
| | <advice name="constructorAdvice" aspect="Singleton"/>
| | </bind>
| |
| | @com.acme.Singleton
| | public class MyBean {}
| |
|
This pointcut language is wrong, since it requires you to annotate the constructor
rather than the bean, but I'm sure you can lookup the correct syntax in the aop docs. ;-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130754#4130754
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130754
More information about the jboss-dev-forums
mailing list