This content has been marked as final.
Show 4 replies
-
1. Re: disable lifecycle method calling for bean?
alesj May 14, 2007 1:44 PM (in response to kibbles)Good point.
I think it was once on my mind.
I'll add it as a TODO - watch JIRA JBMICROCONT-23.
For the moment do a bogus method name - and let me know me know how it goes. -
2. Re: disable lifecycle method calling for bean?
kibbles May 14, 2007 5:24 PM (in response to kibbles)Thanks for the quick response. I was hoping I was just missing something obvious. Looking at the code inside LifecycleAction, it looks like if I give a bogus method name, the exception will be eaten and logged, so that should be viable workaround until a cleaner solution is available.
-
3. Re: disable lifecycle method calling for bean?
alesj May 14, 2007 5:28 PM (in response to kibbles)"kibbles" wrote:
Looking at the code inside LifecycleAction, it looks like if I give a bogus method name, the exception will be eaten and logged, so that should be viable workaround until a cleaner solution is available.
Yes. :-)try { ClassLoader cl = Configurator.getClassLoader(metaData); joinpoint = configurator.getMethodJoinPoint(info, cl, method, parameters, false, true); } catch (JoinpointException ignored) { if (trace) { if (parameters == null) log.trace("No " + method + " method for " + context); else log.trace("No " + method + parameters + " method for " + context); } return; }
Will look at this issue ASAP. -
4. Re: disable lifecycle method calling for bean?
alesj May 15, 2007 2:25 PM (in response to kibbles)Done.
It's commited in the trunk, together with test cases.