donaldp 2002/09/28 01:31:06 Added: thread/src/java/org/apache/avalon/excalibur/thread/impl ExecutableExecuteable.java Log: A wrapper class that wraps an Avalon Executable to adapt it to an Thread Executable Revision Changes Path 1.1 jakarta-avalon-excalibur/thread/src/java/org/apache/avalon/excalibur/thread/impl/ExecutableExecuteable.java Index: ExecutableExecuteable.java =================================================================== /* * Copyright (C) The Apache Software Foundation. All rights reserved. * * This software is published under the terms of the Apache Software License * version 1.1, a copy of which has been included with this distribution in * the LICENSE.txt file. */ package org.apache.avalon.excalibur.thread.impl; import org.apache.excalibur.thread.Executable; /** * Class to adapt a {@link org.apache.avalon.framework.activity.Executable} object in * an {@link Executable} object. * * @author <a href="mailto:peter at apache.org">Peter Donald</a> */ final class ExecutableExecuteable implements Executable { ///The runnable instance being wrapped private org.apache.avalon.framework.activity.Executable m_runnable; /** * Create adapter using specified runnable. * * @param runnable the runnable to adapt to */ protected ExecutableExecuteable( final org.apache.avalon.framework.activity.Executable runnable ) { if( null == runnable ) { throw new NullPointerException( "runnable" ); } m_runnable = runnable; } /** * Execute the underlying * {@link org.apache.avalon.framework.activity.Executable} object. * * @throws Exception if an error occurs */ public void execute() throws Exception { m_runnable.execute(); } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>