[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Aspect integration to bootstrap classes

kabir.khan@jboss.com do-not-reply at jboss.com
Mon Jan 8 09:57:57 EST 2007


I am looking at moving the AOP into bootstrap-beans.xml, I will allow for some "initial" XML to be passed in to the aspectmanager bean, which should make possible

  |    <aspect name="mainDeployer"
  | class="org.jboss.profileservice.aop.MainDeployerAdvice"/>
  |    <bind pointcut="execution(*
  | $instanceof{org.jboss.deployers.spi.deployment.MainDeployer}->process(..))">
  |       <advice name="process" aspect="mainDeployer"/>
  |    </bind>
  | 

However, since AFAICT ManagedProperty is not a bean, in order to be able to do:

  |    <aspect name="persist"
  | class="org.jboss.profileservice.aop.PersistAdvice"/>
  |    <bind pointcut="execution(*
  | $instanceof{org.jboss.deployers.spi.deployment.MainDeployer}->process(..))">
  |       <advice name="process" aspect="mainDeployer"/>
  |    </bind>
  | 

We have the following choices:
1) Require jboss to be run with a custom loader for loadtime weaving to be enabled, which might be overkill?
2) Weave/Prepare ManagedProperty at compiletime, so that it has the AOP hooks in place, and pick up the aspects to be applied to these joinpoints at runtime from the "initial" xml


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999037#3999037

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999037



More information about the jboss-dev-forums mailing list