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.PicoIntrospectionException;
014
015 import java.util.Collection;
016
017 public class TooManySatisfiableConstructorsException extends PicoIntrospectionException {
018
019 private Class forClass;
020 private Collection constructors;
021
022 public TooManySatisfiableConstructorsException(Class forClass, Collection constructors) {
023 super( "Too many satisfiable constructors:" + constructors.toString());
024 this.forClass = forClass;
025 this.constructors = constructors;
026 }
027
028 public Class getForImplementationClass() {
029 return forClass;
030 }
031
032 public Collection getConstructors() {
033 return constructors;
034 }
035 }