bloritsch    2003/07/11 06:18:40

  Modified:    cache/lib .cvsignore
               csframework/src/cs .cvsignore
               merlin/assembly/src/test/org/apache/avalon/assembly
                        TestBase.java
               merlin/assembly-spi/src/java/org/apache/avalon/assembly/engine/service
                        DuplicateServiceException.java
  Log:
  update the .cvsignore files
  
  Revision  Changes    Path
  1.3       +10 -10    avalon-sandbox/cache/lib/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/cache/lib/.cvsignore,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- .cvsignore        8 Jul 2003 17:18:54 -0000       1.2
  +++ .cvsignore        11 Jul 2003 13:18:40 -0000      1.3
  @@ -1,10 +1,10 @@
  -ant.properties
  -build
  -checkstyle.cache
  -distributions
  -dist
  -excalibur-*
  -velocity.log*
  -*.el
  -*.ipr
  -avalon-framework-4.1.4.jar
  +ant.properties
  +build
  +checkstyle.cache
  +distributions
  +dist
  +excalibur-*
  +velocity.log*
  +*.el
  +*.ipr
  +avalon-framework-4.1.4.jar
  
  
  
  1.2       +3 -3      avalon-sandbox/csframework/src/cs/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/csframework/src/cs/.cvsignore,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- .cvsignore        8 Jul 2003 17:51:34 -0000       1.1
  +++ .cvsignore        11 Jul 2003 13:18:40 -0000      1.2
  @@ -1,3 +1,3 @@
  -bin
  -obj
  -cs.csproj.user
  +bin
  +obj
  +cs.csproj.user
  
  
  
  1.11      +202 -202  
avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/TestBase.java
  
  Index: TestBase.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/merlin/assembly/src/test/org/apache/avalon/assembly/TestBase.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TestBase.java     8 Jul 2003 17:18:55 -0000       1.10
  +++ TestBase.java     11 Jul 2003 13:18:40 -0000      1.11
  @@ -1,202 +1,202 @@
  -/*
  -
  - ============================================================================
  -                   The Apache Software License, Version 1.1
  - ============================================================================
  -
  - Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
  -
  - Redistribution and use in source and binary forms, with or without modifica-
  - tion, are permitted provided that the following conditions are met:
  -
  - 1. Redistributions of  source code must  retain the above copyright  notice,
  -    this list of conditions and the following disclaimer.
  -
  - 2. Redistributions in binary form must reproduce the above copyright notice,
  -    this list of conditions and the following disclaimer in the documentation
  -    and/or other materials provided with the distribution.
  -
  - 3. The end-user documentation included with the redistribution, if any, must
  -    include  the following  acknowledgment:  "This product includes  software
  -    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  -    Alternately, this  acknowledgment may  appear in the software itself,  if
  -    and wherever such third-party acknowledgments normally appear.
  -
  - 4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and
  -    "Apache Software Foundation"  must not be used to endorse or promote
  -    products derived  from this  software without  prior written
  -    permission. For written permission, please contact [EMAIL PROTECTED]
  -
  - 5. Products  derived from this software may not  be called "Apache", nor may
  -    "Apache" appear  in their name,  without prior written permission  of the
  -    Apache Software Foundation.
  -
  - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  - FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  - APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  - INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  - DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  - OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  - ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  - (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  -
  - This software  consists of voluntary contributions made  by many individuals
  - on  behalf of the Apache Software  Foundation. For more  information on the
  - Apache Software Foundation, please see <http://www.apache.org/>.
  -
  -*/
  -
  -package org.apache.avalon.assembly;
  -
  -import java.io.File;
  -import java.net.URL;
  -
  -import org.apache.avalon.assembly.engine.impl.EngineClassLoader;
  -import org.apache.avalon.assembly.locator.impl.DefaultLocator;
  -import org.apache.avalon.assembly.logging.impl.DefaultLoggingManager;
  -import org.apache.avalon.assembly.logging.LoggingDescriptor;
  -import org.apache.avalon.assembly.logging.LoggingManager;
  -import org.apache.avalon.assembly.logging.TargetDescriptor;
  -import org.apache.avalon.composition.repository.Repository;
  -import org.apache.avalon.composition.repository.impl.FileRepository;
  -import org.apache.avalon.assembly.util.ExceptionHelper;
  -import org.apache.avalon.framework.logger.Logger;
  -import org.apache.avalon.framework.context.DefaultContext;
  -import org.apache.avalon.framework.parameters.Parameters;
  -import org.apache.avalon.meta.model.Category;
  -import org.apache.excalibur.event.command.CommandManager;
  -import org.apache.excalibur.event.command.TPCThreadManager;
  -import org.apache.excalibur.mpool.DefaultPoolManager;
  -import org.apache.excalibur.mpool.PoolManager;
  -
  -import junit.framework.TestCase;
  -
  -/**
  - *
  - * @author <a href="mailto:[EMAIL PROTECTED]">Avalon Development Team</a>
  - */
  -public abstract class TestBase extends TestCase
  -{
  -
  -    protected LoggingManager m_logManager;
  -    protected File m_base;
  -
  -    public TestBase( String name )
  -    {
  -        super( name );
  -    }
  -
  -    protected void setUp() throws Exception
  -    {
  -        setUpLogging( "WARN" );
  -    }
  -
  -    protected void setUpLogging( String priority ) throws Exception
  -    {
  -        m_base = new File( System.getProperty( "user.dir" ) );
  -        LoggingDescriptor logging =
  -                new LoggingDescriptor(
  -                        "", priority, null,
  -                        new TargetDescriptor[0],
  -                        new Category( "logging", "WARN" ) );
  -
  -        DefaultLocator context = new DefaultLocator();
  -        context.put( "urn:assembly:home", m_base );
  -        context.put( "urn:assembly:logging.descriptor", logging );
  -        context.makeReadOnly();
  -
  -        DefaultLoggingManager manager = new DefaultLoggingManager();
  -        manager.contextualize( context );
  -        manager.initialize();
  -
  -        m_logManager = manager;
  -    }
  -
  -    protected Logger getLogger()
  -    {
  -        return m_logManager.getLoggerForCategory( "test" );
  -    }
  -
  -    protected EngineClassLoader setUpEngine( boolean bootstrap ) throws Exception
  -    {
  -        try
  -        {
  -            EngineClassLoader engine = new EngineClassLoader();
  -            engine.enableLogging( getLogger() );
  -            DefaultLocator context = new DefaultLocator();
  -            context.put( LoggingManager.KEY, m_logManager );
  -            context.put( "urn:assembly:engine.bootstrap", "" + bootstrap );
  -            context.put( Repository.KEY, getRepository() );
  -            context.put( PoolManager.ROLE, getPoolManager() );
  -            context.makeReadOnly();
  -            engine.contextualize( context );
  -            engine.initialize();
  -            return engine;
  -        }
  -        catch( Exception e )
  -        {
  -            ExceptionHelper.printException( "Engine setup failure.", e, this, true 
);
  -            fail( "Engine setup failure." );
  -            throw e;
  -        }
  -    }
  -
  -    private Repository getRepository() throws Exception
  -    {
  -        File base = new File( System.getProperty("basedir") );
  -        File target = new File( base, "target" );
  -        File root = new File( target, "test-repository" );
  -        root.mkdirs();
  -        FileRepository repository = new FileRepository();
  -        repository.enableLogging( getLogger().getChildLogger( "repository" ) );
  -        DefaultContext context = new DefaultContext();
  -        context.put( FileRepository.BASE_KEY, root );
  -        context.put( FileRepository.HOSTS_KEY, new URL[0] );
  -        context.makeReadOnly();
  -        repository.contextualize( context );
  -        return repository;
  -    }
  -
  -    private PoolManager getPoolManager() throws Exception
  -    {
  -        try
  -        {
  -            //
  -            // Set up the ThreadManager that the CommandManager uses
  -            //
  -
  -            TPCThreadManager threadManager = new TPCThreadManager();
  -            threadManager.enableLogging( getLogger().getChildLogger( "threads" ) );
  -            Parameters params = new Parameters();
  -            params.setParameter( "threads-per-processor", "2" );
  -            params.setParameter( "sleep-time", "1000" );
  -            params.setParameter( "block-timeout", "250" );
  -            threadManager.parameterize( params );
  -            threadManager.initialize();
  -
  -            //
  -            // Set up the CommandManager that the PoolManager uses.
  -            //
  -
  -            CommandManager commandManager = new CommandManager();
  -            threadManager.register( commandManager );
  -
  -            //
  -            // Set up the PoolManager that the pooled lifecycle helper needs
  -            //
  -
  -            DefaultPoolManager poolManager =
  -                    new DefaultPoolManager( commandManager.getCommandSink() );
  -            return poolManager;
  -        }
  -        catch( Throwable e )
  -        {
  -            final String error =
  -                    "Internal error during establishment of the default pool 
manager. Cause: ";
  -            throw new Exception( error + e.toString() );
  -        }
  -    }
  -
  -}
  +/*
  +
  + ============================================================================
  +                   The Apache Software License, Version 1.1
  + ============================================================================
  +
  + Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
  +
  + Redistribution and use in source and binary forms, with or without modifica-
  + tion, are permitted provided that the following conditions are met:
  +
  + 1. Redistributions of  source code must  retain the above copyright  notice,
  +    this list of conditions and the following disclaimer.
  +
  + 2. Redistributions in binary form must reproduce the above copyright notice,
  +    this list of conditions and the following disclaimer in the documentation
  +    and/or other materials provided with the distribution.
  +
  + 3. The end-user documentation included with the redistribution, if any, must
  +    include  the following  acknowledgment:  "This product includes  software
  +    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  +    Alternately, this  acknowledgment may  appear in the software itself,  if
  +    and wherever such third-party acknowledgments normally appear.
  +
  + 4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and
  +    "Apache Software Foundation"  must not be used to endorse or promote
  +    products derived  from this  software without  prior written
  +    permission. For written permission, please contact [EMAIL PROTECTED]
  +
  + 5. Products  derived from this software may not  be called "Apache", nor may
  +    "Apache" appear  in their name,  without prior written permission  of the
  +    Apache Software Foundation.
  +
  + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  + FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  + APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  + INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  + DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  + OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  + ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  + (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +
  + This software  consists of voluntary contributions made  by many individuals
  + on  behalf of the Apache Software  Foundation. For more  information on the
  + Apache Software Foundation, please see <http://www.apache.org/>.
  +
  +*/
  +
  +package org.apache.avalon.assembly;
  +
  +import java.io.File;
  +import java.net.URL;
  +
  +import org.apache.avalon.assembly.engine.impl.EngineClassLoader;
  +import org.apache.avalon.assembly.locator.impl.DefaultLocator;
  +import org.apache.avalon.assembly.logging.impl.DefaultLoggingManager;
  +import org.apache.avalon.assembly.logging.LoggingDescriptor;
  +import org.apache.avalon.assembly.logging.LoggingManager;
  +import org.apache.avalon.assembly.logging.TargetDescriptor;
  +import org.apache.avalon.composition.repository.Repository;
  +import org.apache.avalon.composition.repository.impl.FileRepository;
  +import org.apache.avalon.assembly.util.ExceptionHelper;
  +import org.apache.avalon.framework.logger.Logger;
  +import org.apache.avalon.framework.context.DefaultContext;
  +import org.apache.avalon.framework.parameters.Parameters;
  +import org.apache.avalon.meta.model.Category;
  +import org.apache.excalibur.event.command.CommandManager;
  +import org.apache.excalibur.event.command.TPCThreadManager;
  +import org.apache.excalibur.mpool.DefaultPoolManager;
  +import org.apache.excalibur.mpool.PoolManager;
  +
  +import junit.framework.TestCase;
  +
  +/**
  + *
  + * @author <a href="mailto:[EMAIL PROTECTED]">Avalon Development Team</a>
  + */
  +public abstract class TestBase extends TestCase
  +{
  +
  +    protected LoggingManager m_logManager;
  +    protected File m_base;
  +
  +    public TestBase( String name )
  +    {
  +        super( name );
  +    }
  +
  +    protected void setUp() throws Exception
  +    {
  +        setUpLogging( "WARN" );
  +    }
  +
  +    protected void setUpLogging( String priority ) throws Exception
  +    {
  +        m_base = new File( System.getProperty( "user.dir" ) );
  +        LoggingDescriptor logging =
  +                new LoggingDescriptor(
  +                        "", priority, null,
  +                        new TargetDescriptor[0],
  +                        new Category( "logging", "WARN" ) );
  +
  +        DefaultLocator context = new DefaultLocator();
  +        context.put( "urn:assembly:home", m_base );
  +        context.put( "urn:assembly:logging.descriptor", logging );
  +        context.makeReadOnly();
  +
  +        DefaultLoggingManager manager = new DefaultLoggingManager();
  +        manager.contextualize( context );
  +        manager.initialize();
  +
  +        m_logManager = manager;
  +    }
  +
  +    protected Logger getLogger()
  +    {
  +        return m_logManager.getLoggerForCategory( "test" );
  +    }
  +
  +    protected EngineClassLoader setUpEngine( boolean bootstrap ) throws Exception
  +    {
  +        try
  +        {
  +            EngineClassLoader engine = new EngineClassLoader();
  +            engine.enableLogging( getLogger() );
  +            DefaultLocator context = new DefaultLocator();
  +            context.put( LoggingManager.KEY, m_logManager );
  +            context.put( "urn:assembly:engine.bootstrap", "" + bootstrap );
  +            context.put( Repository.KEY, getRepository() );
  +            context.put( PoolManager.ROLE, getPoolManager() );
  +            context.makeReadOnly();
  +            engine.contextualize( context );
  +            engine.initialize();
  +            return engine;
  +        }
  +        catch( Exception e )
  +        {
  +            ExceptionHelper.printException( "Engine setup failure.", e, this, true 
);
  +            fail( "Engine setup failure." );
  +            throw e;
  +        }
  +    }
  +
  +    private Repository getRepository() throws Exception
  +    {
  +        File base = new File( System.getProperty("basedir") );
  +        File target = new File( base, "target" );
  +        File root = new File( target, "test-repository" );
  +        root.mkdirs();
  +        FileRepository repository = new FileRepository();
  +        repository.enableLogging( getLogger().getChildLogger( "repository" ) );
  +        DefaultContext context = new DefaultContext();
  +        context.put( FileRepository.BASE_KEY, root );
  +        context.put( FileRepository.HOSTS_KEY, new URL[0] );
  +        context.makeReadOnly();
  +        repository.contextualize( context );
  +        return repository;
  +    }
  +
  +    private PoolManager getPoolManager() throws Exception
  +    {
  +        try
  +        {
  +            //
  +            // Set up the ThreadManager that the CommandManager uses
  +            //
  +
  +            TPCThreadManager threadManager = new TPCThreadManager();
  +            threadManager.enableLogging( getLogger().getChildLogger( "threads" ) );
  +            Parameters params = new Parameters();
  +            params.setParameter( "threads-per-processor", "2" );
  +            params.setParameter( "sleep-time", "1000" );
  +            params.setParameter( "block-timeout", "250" );
  +            threadManager.parameterize( params );
  +            threadManager.initialize();
  +
  +            //
  +            // Set up the CommandManager that the PoolManager uses.
  +            //
  +
  +            CommandManager commandManager = new CommandManager();
  +            threadManager.register( commandManager );
  +
  +            //
  +            // Set up the PoolManager that the pooled lifecycle helper needs
  +            //
  +
  +            DefaultPoolManager poolManager =
  +                    new DefaultPoolManager( commandManager.getCommandSink() );
  +            return poolManager;
  +        }
  +        catch( Throwable e )
  +        {
  +            final String error =
  +                    "Internal error during establishment of the default pool 
manager. Cause: ";
  +            throw new Exception( error + e.toString() );
  +        }
  +    }
  +
  +}
  
  
  
  1.4       +85 -85    
avalon-sandbox/merlin/assembly-spi/src/java/org/apache/avalon/assembly/engine/service/DuplicateServiceException.java
  
  Index: DuplicateServiceException.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-sandbox/merlin/assembly-spi/src/java/org/apache/avalon/assembly/engine/service/DuplicateServiceException.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DuplicateServiceException.java    8 Jul 2003 18:23:18 -0000       1.3
  +++ DuplicateServiceException.java    11 Jul 2003 13:18:40 -0000      1.4
  @@ -1,85 +1,85 @@
  -/*
  -
  - ============================================================================
  -                   The Apache Software License, Version 1.1
  - ============================================================================
  -
  - Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
  -
  - Redistribution and use in source and binary forms, with or without modifica-
  - tion, are permitted provided that the following conditions are met:
  -
  - 1. Redistributions of  source code must  retain the above copyright  notice,
  -    this list of conditions and the following disclaimer.
  -
  - 2. Redistributions in binary form must reproduce the above copyright notice,
  -    this list of conditions and the following disclaimer in the documentation
  -    and/or other materials provided with the distribution.
  -
  - 3. The end-user documentation included with the redistribution, if any, must
  -    include  the following  acknowledgment:  "This product includes  software
  -    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  -    Alternately, this  acknowledgment may  appear in the software itself,  if
  -    and wherever such third-party acknowledgments normally appear.
  -
  - 4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and
  -    "Apache Software Foundation"  must not be used to endorse or promote
  -    products derived  from this  software without  prior written
  -    permission. For written permission, please contact [EMAIL PROTECTED]
  -
  - 5. Products  derived from this software may not  be called "Apache", nor may
  -    "Apache" appear  in their name,  without prior written permission  of the
  -    Apache Software Foundation.
  -
  - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  - FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  - APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  - INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  - DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  - OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  - ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  - (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  - THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  -
  - This software  consists of voluntary contributions made  by many individuals
  - on  behalf of the Apache Software  Foundation. For more  information on the
  - Apache Software Foundation, please see <http://www.apache.org/>.
  -
  -*/
  -
  -package org.apache.avalon.assembly.engine.service;
  -
  -/**
  - * Exception raised in response to an attempt to override
  - * an existing service defintion.
  - *
  - * @author <a href="mailto:[EMAIL PROTECTED]">Avalon Development Team</a>
  - * @version $Revision$ $Date$
  - */
  -public final class DuplicateServiceException
  -        extends ServiceException
  -{
  -
  -    /**
  -     * Construct a new <code>DuplicateServiceException</code> instance.
  -     *
  -     * @param message The detail message for this exception.
  -     */
  -    public DuplicateServiceException( final String message )
  -    {
  -        this( message, null );
  -    }
  -
  -    /**
  -     * Construct a new <code>DuplicateServiceException</code> instance.
  -     *
  -     * @param message The detail message for this exception.
  -     * @param throwable the root cause of the exception
  -     */
  -    public DuplicateServiceException( final String message, final Throwable 
throwable )
  -    {
  -        super( message, throwable );
  -    }
  -}
  -
  +/*
  +
  + ============================================================================
  +                   The Apache Software License, Version 1.1
  + ============================================================================
  +
  + Copyright (C) 1999-2002 The Apache Software Foundation. All rights reserved.
  +
  + Redistribution and use in source and binary forms, with or without modifica-
  + tion, are permitted provided that the following conditions are met:
  +
  + 1. Redistributions of  source code must  retain the above copyright  notice,
  +    this list of conditions and the following disclaimer.
  +
  + 2. Redistributions in binary form must reproduce the above copyright notice,
  +    this list of conditions and the following disclaimer in the documentation
  +    and/or other materials provided with the distribution.
  +
  + 3. The end-user documentation included with the redistribution, if any, must
  +    include  the following  acknowledgment:  "This product includes  software
  +    developed  by the  Apache Software Foundation  (http://www.apache.org/)."
  +    Alternately, this  acknowledgment may  appear in the software itself,  if
  +    and wherever such third-party acknowledgments normally appear.
  +
  + 4. The names "Jakarta", "Apache Avalon", "Avalon Framework" and
  +    "Apache Software Foundation"  must not be used to endorse or promote
  +    products derived  from this  software without  prior written
  +    permission. For written permission, please contact [EMAIL PROTECTED]
  +
  + 5. Products  derived from this software may not  be called "Apache", nor may
  +    "Apache" appear  in their name,  without prior written permission  of the
  +    Apache Software Foundation.
  +
  + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
  + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  + FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
  + APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
  + INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
  + DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
  + OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
  + ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
  + (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
  + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +
  + This software  consists of voluntary contributions made  by many individuals
  + on  behalf of the Apache Software  Foundation. For more  information on the
  + Apache Software Foundation, please see <http://www.apache.org/>.
  +
  +*/
  +
  +package org.apache.avalon.assembly.engine.service;
  +
  +/**
  + * Exception raised in response to an attempt to override
  + * an existing service defintion.
  + *
  + * @author <a href="mailto:[EMAIL PROTECTED]">Avalon Development Team</a>
  + * @version $Revision$ $Date$
  + */
  +public final class DuplicateServiceException
  +        extends ServiceException
  +{
  +
  +    /**
  +     * Construct a new <code>DuplicateServiceException</code> instance.
  +     *
  +     * @param message The detail message for this exception.
  +     */
  +    public DuplicateServiceException( final String message )
  +    {
  +        this( message, null );
  +    }
  +
  +    /**
  +     * Construct a new <code>DuplicateServiceException</code> instance.
  +     *
  +     * @param message The detail message for this exception.
  +     * @param throwable the root cause of the exception
  +     */
  +    public DuplicateServiceException( final String message, final Throwable 
throwable )
  +    {
  +        super( message, throwable );
  +    }
  +}
  +
  
  
  

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

Reply via email to