KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > defaults > TooManySatisfiableConstructorsException


1 /*****************************************************************************
2  * Copyright (c) PicoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant *
9  *****************************************************************************/

10
11 package org.picocontainer.defaults;
12
13 import org.picocontainer.PicoIntrospectionException;
14
15 import java.util.Collection JavaDoc;
16
17 public class TooManySatisfiableConstructorsException extends PicoIntrospectionException {
18
19     private Class JavaDoc forClass;
20     private Collection JavaDoc constructors;
21
22     public TooManySatisfiableConstructorsException(Class JavaDoc forClass, Collection JavaDoc constructors) {
23         super( "Too many satisfiable constructors:" + constructors.toString());
24         this.forClass = forClass;
25         this.constructors = constructors;
26     }
27
28     public Class JavaDoc getForImplementationClass() {
29         return forClass;
30     }
31
32     public Collection JavaDoc getConstructors() {
33         return constructors;
34     }
35 }
36
Popular Tags