org.jdtaus.core.container
Class Dependency

java.lang.Object
  extended byorg.jdtaus.core.container.Dependency
All Implemented Interfaces:
Cloneable, Serializable

public class Dependency
extends Object
implements Cloneable, Serializable

Dependency meta-data.

A dependency consists of a name uniquely identifying the dependency in a collection of dependencies. A dependency pairs a specification with a corresponding implementation from a set of available implementations. Properties set with a dependency overwrite the properties defined by the implementation. The flag indicates if an instance of the dependency is bound to the requesting implementation.

Version:
$Id: Dependency.java 2230 2007-03-26 01:37:48Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
Dependency()
           
 
Method Summary
 Object clone()
          Creates and returns a deep copy of this object.
 boolean equals(Object o)
          Indicates whether some other object is equal to this one by comparing the values of all properties.
 Implementation getImplementation()
          Gets the implementation of the dependency.
 String getName()
          Gets the name of the dependency.
 Properties getProperties()
          Gets the properties of the dependency.
 Specification getSpecification()
          Gets the specification of the dependency.
 int hashCode()
          Returns a hash code value for this object.
 boolean isBound()
          Gets the flag indicating if the dependency is bound to a requesting implementation.
 void setBound(boolean value)
          Setter for property .
 void setImplementation(Implementation value)
          Setter for property .
 void setName(String value)
          Setter for property .
 void setProperties(Properties value)
          Setter for property .
 void setSpecification(Specification value)
          Setter for property .
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dependency

public Dependency()
Method Detail

clone

public Object clone()
Creates and returns a deep copy of this object.

Returns:
a clone of this instance.

equals

public boolean equals(Object o)
Indicates whether some other object is equal to this one by comparing the values of all properties.

Parameters:
o - the reference object with which to compare.
Returns:
if this object is the same as ; otherwise.

getImplementation

public Implementation getImplementation()
Gets the implementation of the dependency.

Returns:
the implementation of the dependency.

getName

public String getName()
Gets the name of the dependency.

Returns:
the name of the dependency.

getProperties

public Properties getProperties()
Gets the properties of the dependency.

Returns:
the properties of the dependency.

getSpecification

public Specification getSpecification()
Gets the specification of the dependency.

Returns:
the specification of the dependency.

hashCode

public int hashCode()
Returns a hash code value for this object.

Returns:
a hash code value for this object.

isBound

public boolean isBound()
Gets the flag indicating if the dependency is bound to a requesting implementation.

Returns:
if an instance of the dependency is bound to the requesting implementation; if not.

setBound

public void setBound(boolean value)
Setter for property .

Parameters:
value - if an instance of the dependency should be bound to the requesting implementation; if not.

setImplementation

public void setImplementation(Implementation value)
Setter for property .

Parameters:
value - the new implementation of the dependency.

setName

public void setName(String value)
Setter for property .

Parameters:
value - the new name of the dependency.

setProperties

public void setProperties(Properties value)
Setter for property .

Parameters:
value - the new properties of the dependency.

setSpecification

public void setSpecification(Specification value)
Setter for property .

Parameters:
value - the new specification of the dependency.

toString

public String toString()
Returns a string representation of the object.

Returns:
a string representation of the object.


Copyright © 2005-2007 jDTAUS. All Rights Reserved.