
public class PropertyOverwriteConstraintException extends IllegalStateException
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.
Implementation.getProperties(),
Dependency.getProperties(),
Serialized Form| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PropertyOverwriteConstraintException(String implementationIdentifier, String dependencyName)
PropertyOverwriteConstraintException instance
taking the identifier of an implementation defining a dependency
providing property values although the specification does not apply to
the multiton scope.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.public PropertyOverwriteConstraintException(String implementationIdentifier, String specificationIdentifier, String propertyName)
PropertyOverwriteConstraintException instance
taking the identifier of an implementation not implementing a
specification property together with information regarding the
unimplemented property.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.public String getDependencyName()
implementationIdentifier violating the
constraint.implementationIdentifier violating the
constraint or null.public String getImplementationIdentifier()
public String getPropertyName()
null.public String getSpecificationIdentifier()
null.Copyright © 2005-2012 jDTAUS. All Rights Reserved.