[Design the new POJO MicroContainer] - Re: Lifecycle aspects revisited
by adrian@jboss.org
"scott.stark(a)jboss.org" wrote :
| Really what I'm suggesting is that the aop:xxx lifecycle elements populate the list of orthogonal behaviors that should be applied during that phase.
Ok so the aop:xxx lifecycle callbacks would implictly define the pointcuts?
I wasn't involved in the design of this part so we'll have see what Kabir thinks.
But it would make sense from my point of view if you could add an action
for deployment time processing without having to add an introduction into the POJO.
e.g. @JMX or @JNDI on the target bean would lead to lifecycle events on
the context but you don't have to go through the proxy at runtime
(although I know at least for the pure AOP this was almost a no-op anyway :-).
The other reason why this would be useful is because I want to have the ability
to see the MBean in the JMX-console even when the target doesn't exist for
the "on-demand" behaviour.
e.g. You would still a skeleton MBean with a single operation to start it.
I don't know how far Kabir got with this using an Introduction and a "hollow proxy"?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015277#4015277
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015277
19 years, 1 month
[Design the new POJO MicroContainer] - Re: Lifecycle aspects revisited
by adrian@jboss.org
"scott.stark(a)jboss.org" wrote : there should be an AOPInstallUnistallAction that pulls the the behaviors to apply from the metadata.
|
Doesn't that suffers from the same problem?
e.g. What if somebody else wants to an XXXInstallUninstallAction as well
as a the AOP one?
In general the MC actions are defined by the person that installs the context
so they can add/remove/override the actions.
e.g. Think about the what we want to do in the profile service where we "null out"
the instantiate/configure lifecycle actions.
At least with the AOP introductions/advices you can define what they are in the AOP config.
Of course, we could go to a more "fundamental" full AOP advice chain in the MC actions
where you could add abritrary behaviour to the actions chosen by the person
that created the context?
But I think this would be even harder to configure since you don't really have
a "target" on which you define pointcuts? That is unless the pointcuts were
just the MC lifecycle events and we had some custom pointcut language
to identify where the advices are applied.
It does have the advantage that you don't need to wrap the target in a proxy
just to add an introduction for deployment time (rather than runtime) behaviour
performed during the MC lifecycle events.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015229#4015229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015229
19 years, 1 month