Return-Path: Delivered-To: apmail-jakarta-avalon-cvs-archive@apache.org Received: (qmail 45355 invoked from network); 28 Sep 2002 02:00:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 28 Sep 2002 02:00:40 -0000 Received: (qmail 18269 invoked by uid 97); 28 Sep 2002 02:01:29 -0000 Delivered-To: qmlist-jakarta-archive-avalon-cvs@jakarta.apache.org Received: (qmail 18253 invoked by uid 97); 28 Sep 2002 02:01:28 -0000 Mailing-List: contact avalon-cvs-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list avalon-cvs@jakarta.apache.org Received: (qmail 18242 invoked by uid 97); 28 Sep 2002 02:01:28 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 28 Sep 2002 02:00:34 -0000 Message-ID: <20020928020034.32689.qmail@icarus.apache.org> From: donaldp@apache.org To: jakarta-avalon-excalibur-cvs@apache.org Subject: cvs commit: jakarta-avalon-excalibur/thread/src/java/org/apache/excalibur/thread/impl ExecutableRunnable.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N donaldp 2002/09/27 19:00:34 Added: thread/src/java/org/apache/excalibur/thread/impl ExecutableRunnable.java Log: Copy across adapter class Revision Changes Path 1.1 jakarta-avalon-excalibur/thread/src/java/org/apache/excalibur/thread/impl/ExecutableRunnable.java Index: ExecutableRunnable.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.excalibur.thread.impl; import org.apache.excalibur.thread.Executable; /** * Class to adapt a {@link Runnable} object in * an {@link Executable} object. * * @author Peter Donald */ final class ExecutableRunnable implements Executable { ///The runnable instance being wrapped private Runnable m_runnable; /** * Create adapter using specified runnable. * * @param runnable the runnable to adapt to */ protected ExecutableRunnable( final Runnable runnable ) { if( null == runnable ) { throw new NullPointerException( "runnable" ); } m_runnable = runnable; } /** * Execute the underlying {@link Runnable} object. * * @throws Exception if an error occurs */ public void execute() throws Exception { m_runnable.run(); } } -- To unsubscribe, e-mail: For additional commands, e-mail: