org.jdtaus.core.container
Class IllegalDependencyTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by org.jdtaus.core.container.IllegalDependencyTypeException
All Implemented Interfaces:
Serializable

public class IllegalDependencyTypeException
extends IllegalStateException

Gets thrown for type collisions of inherited dependencies.

Version:
$Id: IllegalDependencyTypeException.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
IllegalDependencyTypeException(String implementationIdentifier, String name, String type, String expectedType)
          Creates a new instance of IllegalDependencyTypeException taking information about the dependency with illegal type.
 
Method Summary
 String getExpectedType()
          Gets the expected type of the dependency.
 String getImplementationIdentifier()
          Gets the identifier of the implementation with a dependency of illegal type.
 String getName()
          Gets the name of the dependency with illegal type.
 String getType()
          Gets the illegal type of the dependency.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalDependencyTypeException

public IllegalDependencyTypeException(String implementationIdentifier,
                                      String name,
                                      String type,
                                      String expectedType)
Creates a new instance of IllegalDependencyTypeException taking information about the dependency with illegal type.

Parameters:
implementationIdentifier - the identifier of the implementation with a dependency of illegal type.
name - the name of the dependency with illegal type.
type - the illegal type of the dependency with name name.
expectedType - the expected type of the dependency with name name.
Method Detail

getExpectedType

public String getExpectedType()
Gets the expected type of the dependency.

Returns:
the expected type of the dependency.

getImplementationIdentifier

public String getImplementationIdentifier()
Gets the identifier of the implementation with a dependency of illegal type.

Returns:
the identifier of the implementation with a dependency of illegal type.

getName

public String getName()
Gets the name of the dependency with illegal type.

Returns:
the name of the dependency with illegal type.

getType

public String getType()
Gets the illegal type of the dependency.

Returns:
the illegal type of the dependency.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.