org.jdtaus.core.container
Class PropertyOverwriteConstraintException

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.PropertyOverwriteConstraintException
All Implemented Interfaces:
Serializable

public class PropertyOverwriteConstraintException
extends IllegalStateException

Gets thrown for property overwrite constraint violations.

A Dependency is allowed to provide values for any properties declared for its specification only if the specification applies to scope SCOPE_MULTITON. An implementation must provide values for all properties declared for its implemented specifications. This exception gets thrown for any violations to these restrictions.

Version:
$Id: PropertyOverwriteConstraintException.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Implementation.getProperties(), Dependency.getProperties(), Serialized Form

Constructor Summary
PropertyOverwriteConstraintException(String implementationIdentifier, String dependencyName)
          Creates a new PropertyOverwriteConstraintException instance taking the identifier of an implementation defining a dependency providing property values although the specification does not apply to the multiton scope.
PropertyOverwriteConstraintException(String implementationIdentifier, String specificationIdentifier, String propertyName)
          Creates a new PropertyOverwriteConstraintException instance taking the identifier of an implementation not implementing a specification property together with information regarding the unimplemented property.
 
Method Summary
 String getDependencyName()
          Gets the name of the dependency defined for the implementation identified by the value of property implementationIdentifier violating the constraint.
 String getImplementationIdentifier()
          Gets the identifier of the implementation defining a dependency violating the constraint.
 String getPropertyName()
          Gets the name of the property not implemented by the implementation.
 String getSpecificationIdentifier()
          Gets the identifier of the specification defining a property not implemented by the implementation.
 
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

PropertyOverwriteConstraintException

public PropertyOverwriteConstraintException(String implementationIdentifier,
                                            String dependencyName)
Creates a new PropertyOverwriteConstraintException instance taking the identifier of an implementation defining a dependency providing property values although the specification does not apply to the multiton scope.

Parameters:
implementationIdentifier - identifier of the implementation defining a dependency violating the constraint.
dependencyName - name of the dependency defined for the implementation identified by implementationIdentifier violating the constraint.

PropertyOverwriteConstraintException

public PropertyOverwriteConstraintException(String implementationIdentifier,
                                            String specificationIdentifier,
                                            String propertyName)
Creates a new PropertyOverwriteConstraintException instance taking the identifier of an implementation not implementing a specification property together with information regarding the unimplemented property.

Parameters:
implementationIdentifier - identifier of the implementation not implementing a specification property.
specificationIdentifier - identifier of the specification an implementation does not implement a property of.
propertyName - name of the unimplemented property.
Method Detail

getDependencyName

public String getDependencyName()
Gets the name of the dependency defined for the implementation identified by the value of property implementationIdentifier violating the constraint.

Returns:
name of the dependency defined for the implementation identified by the value of property implementationIdentifier violating the constraint or null.

getImplementationIdentifier

public String getImplementationIdentifier()
Gets the identifier of the implementation defining a dependency violating the constraint.

Returns:
identifier of the implementation defining a dependency violating the constraint.

getPropertyName

public String getPropertyName()
Gets the name of the property not implemented by the implementation.

Returns:
name of the property not implemented by the implementation or null.

getSpecificationIdentifier

public String getSpecificationIdentifier()
Gets the identifier of the specification defining a property not implemented by the implementation.

Returns:
identifier of the specification defining a property not implemented by the implementation or null.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.