2 Replies Latest reply on Aug 28, 2006 8:18 AM by Ales Justin

    Lifecycle default method name

    Ales Justin Master

      I added an additional condition check


      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.