4 Replies Latest reply on May 15, 2007 2:25 PM by Ales Justin

    disable lifecycle method calling for bean?

    Michael McKibben Newbie

      Let's say I have a bean that just happens to have a method that matches one of the default lifecycle methods: create/destroy start/stop. How do I prevent the kernel from calling one of these methods when installing my bean in the container? My bean needs to implement an interface that has a create() method, but I don't want it being called by the kernel, but rather by clients of my bean. Do I have to add a child element with a bogus method name? It would be nice if there was either an annotation or an attribute on the lifecycle element (e.g. ignore="true") that supported this.