[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Fine grained action aware interfaces (JBMICROCONT-134)

adrian@jboss.org do-not-reply at jboss.com
Wed Jan 17 10:59:59 EST 2007


"bkeh12" wrote : Hi,adrian
  | Where are you ? 
  | alesj wrote : Currently all interfaces extend KernelControllerContextAware, which is convenient for simple awareness, but might not be that useful in all cases. 
  | Do you agree this!
  | Can talk to us, please.

Personally, I have little interest in this feature. :-)
I think it is an anti-pattern of IOC for the "POJO" to implement container interfaces.

I understand that sometimes it is useful, but only for people that are trying to
"extend" the container without modifying the container itself, 
e.g. using AOP to add the interface as a mixin so you can pick and choose
which beans get certain processing.

Without more concrete usecases of these features it is difficult to come to
any conclusion on what this api should really look like.

The only reason I added it in the first place was because it mirrored the
MBeanRegistration interface from JMX.

The whole question then became more complicated when the 
"JMX Introduction" aspect couldn't decide whether it wanted be invoked
at construction or configuration. :-)

So we extended the api such that you could get a callback on any of the state transitions.

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

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



More information about the jboss-dev-forums mailing list