avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: cvs commit: avalon/src/java/org/apache/avalon/framework/container ContainerUtil.java
Date Mon, 24 Mar 2003 14:25:39 GMT
donaldp@apache.org 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
 >   +     * {@link 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: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message