This content has been marked as final.
Show 6 replies
-
1. Re: Fine grained action aware interfaces (JBMICROCONT-134)
kabirkhan Jan 16, 2007 11:53 AM (in response to alesj)I have updated the lifecycle stuff to use the more specific lifecycle KernelControllerContextAware interfaces.
As part of this I have changed the<aop:lifcycle>
xml to<aop:lifecycle-configure/> <aop:lifecycle-create/> <aop:lifecycle-describe/> <aop:lifecycle-install/> <aop:lifecycle-instantiate/> <aop:lifecycle-start/>
This will need updating in A/S trunk when the microcontainer snapshot is updated (affected modules are aop-mc-int and kernel). I modified kernel to not invoke the ConfigureKernelControllerContextAware twice, by checking that if the interface is EXACTLY KernelControllerContextAware, it will invoke that as part of the ConfigureAction. -
2. Re: Fine grained action aware interfaces (JBMICROCONT-134)
starksm64 Jan 16, 2007 4:38 PM (in response to alesj)I pulled in your changes and will test them in my local snapshot update. I'll be pushing out a new snapshot tonight that includes these along with management changes I'm working on.
-
3. Re: Fine grained action aware interfaces (JBMICROCONT-134)
bkeh12 Jan 17, 2007 8:54 AM (in response to alesj)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. -
4. Re: Fine grained action aware interfaces (JBMICROCONT-134)
alesj Jan 17, 2007 9:07 AM (in response to alesj)Where do you see the problem?
What I meant was that if you need to be notified of the exact state (implementing multiple KCCAware interfaces) when the awareness happens, the same method is always called, and you must look into the context to figure out what the current state is. -
5. Re: Fine grained action aware interfaces (JBMICROCONT-134)
adrian.brock Jan 17, 2007 10:59 AM (in response to alesj)"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. -
6. Re: Fine grained action aware interfaces (JBMICROCONT-134)
bkeh12 Jan 18, 2007 10:27 AM (in response to alesj)Thank you very much... :-)