001    /*****************************************************************************
002     * Copyright (c) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant   *
009     *****************************************************************************/
010    
011    package org.picocontainer.defaults;
012    
013    import org.picocontainer.PicoRegistrationException;
014    
015    /**
016     * @author Aslak Hellesoy
017     * @version $Revision: 1.6 $
018     */
019    public class NotConcreteRegistrationException extends PicoRegistrationException {
020        private final Class componentImplementation;
021    
022        public NotConcreteRegistrationException(Class componentImplementation) {
023            super("Bad Access: '" + componentImplementation.getName() + "' is not instantiable");
024            this.componentImplementation = componentImplementation;
025        }
026    
027        public Class getComponentImplementation() {
028            return componentImplementation;
029        }
030    }