Class ConfigurationInvalidClassException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.extex.framework.configuration.exception.ConfigurationException
                  extended by org.extex.framework.configuration.exception.ConfigurationInvalidClassException
All Implemented Interfaces:

public class ConfigurationInvalidClassException
extends ConfigurationException

This exception is thrown when a dynamically loaded class does not implement an expected interface.

$Revision: 5837 $
Gerd Neugebauer
See Also:
Serialized Form

Constructor Summary
ConfigurationInvalidClassException(java.lang.String className, java.lang.String interfaceName, Configuration config)
          Creates a new object.
Method Summary
protected  java.lang.String getText()
          Getter for the text prefix of this ConfigException.
Methods inherited from class org.extex.framework.configuration.exception.ConfigurationException
getLocalizedMessage, getLocalizer, getSource
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public ConfigurationInvalidClassException(java.lang.String className,
                                          java.lang.String interfaceName,
                                          Configuration config)
Creates a new object.

className - the name of the class
interfaceName - the name of the interface expected to be implemented by the class
config - the configuration in which the problem occurred or null
Method Detail


protected java.lang.String getText()
Getter for the text prefix of this ConfigException. The text is taken from the resource bundle ConfigurationEception under the key ConfigurationInvalidClassException.Text. The argument {0} is replaced by the name of the missing class as passed to the constructor, or the message of the cause if no class name is present, or the empty string as final fallback.

getText in class ConfigurationException
the text