[jboss-dev-forums] [Design the new POJO MicroContainer] - Lifecycle default method name

alesj do-not-reply at jboss.com
Sun Aug 27 15:34:57 EDT 2006


I added an additional condition check
anonymous wrote : 
  |       if (lifecycle != null && lifecycle.getMethodName() != null)
  |          return lifecycle.getMethodName();
  |       return "create";
  | 
in these classes
 - GenericBeanFactory
 - CreateDestroyLifecycleAction
 - StartStopLifecycleAction

Since I got 'IllegalArgumentException("Null name")' in Configurator.findMethod from LifecycleAction when method name in LifecycleMetaData wasn't set - expecting to use default one.

Is this ok?

Lifecycle tests pass.

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

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



More information about the jboss-dev-forums mailing list