[EMAIL PROTECTED] wrote:

> donaldp     2003/03/23 22:15:49
>
>   Modified:    src/java/org/apache/avalon/framework/container
>                         ContainerUtil.java
>   Log:
>   Add in utility method to Execute object



I wan't aware we as a community made this an official lifecycle
method.  We need to keep Framework as stable as possible.

I believe the last discussion on this ended with the conclusion
that Runnable/Executable are *not* lifecycle methods, so therefore
putting this support in ContainerUtil would be sending the wrong
message.


> + > + /** > + * Execute the specified object if it implements the > + * [EMAIL PROTECTED] Executable} interface. > + * > + * @param object the object to execute > + * @throws Exception if there is a problem executing object > + */ > + public static void execute( final Object object ) > + throws Exception > + { > + if( object instanceof Executable ) > + { > + ( (Executable)object ).execute(); > } > } >





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to