[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Dynamic AOP API

kabir.khan@jboss.com do-not-reply at jboss.com
Thu Jul 24 10:43:39 EDT 2008


I think we should be able to add everything that has any bearing on dynamic aop, which would include annotation overrides. 

Just a half-baked thought, instead of creating something with loads of overloaded methods like:

  | addBinding(String pointcut, String cflow, AdviceInfo[] advices);
  | addBinding(String pointcut, AdviceInfo[] advices);
  | //And other variations
  | 
it might be better to encapsulate these in a parameter object

  | interface DynamicBindingOperation{
  |    void setPointcut(String pointcut);
  |    void setAdvices(AdviceInfo[] advices);
  |    void setCFlow(String cflow);
  | }
  | 
And then on the facade have methods like

  | DynamicBindingOperation createDynamicBindingOperation();
  | void addDynamicBindingOperation(DynamicBindingOperation dbo);
  | 
The user would then call the create method, add whatever info via the DBO setters, and pass this in to the add method, which in turn will validate that everything that is required is part of the DBO, create the relevant artifacts and install them in the AspectManager.

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

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



More information about the jboss-dev-forums mailing list