Also associated with each dependency is a set of arbitrary attributes that can be used to store extra information about dependency. See {@link InfoDescriptor} for exampleof how to declare the container specific attributes.
Possible uses for the attributes are to declare container specific constraints of component. For example a dependency on a Corba ORB may also require that the Corba ORB contain the TimeServer and PersistenceStateService at initialization. Or it may require that the componenet be multi-thread safe or that it is persistent etc. These are all container specific demands.
@author Avalon Development Team @version $Revision: 1.1.1.1 $ $Date: 2003/09/24 08:15:06 $ The main information this descriptor contains is the constraint on the dependency. There is actually two kind of dependency constraints: the default dependency constraint, which can be obtained with {@link #getDependencyRevisionId()}, and corresponds to the rev
attribute in Ivy files. This is the constraint as it should be honored by Ivy in default resolve mode.
Then there is the dynamic constraint, which can either be the same as the default constraint, or the original dependency constraint when an Ivy file is delivered an published to a repository. This dynamic constraint is returned by {@link #getDynamicConstraintDependencyRevisionId()}, and corresponds to the revconstraint
attribute in the Ivy file. In some resolve mode, this constraint can be used instead of the default dependency constraint when performing dependency resolution.
Also associated with each dependency is a set of arbitrary Attributes that can be used to store extra information about dependency.
Possible uses for the Attributes are to declare container specific constraints of component. For example a dependency on a Corba ORB may also require that the Corba ORB contain the TimeServer and PersistenceStateService at initialization. Or it may require that the componenet be multi-thread safe or that it is persistent etc. These are all container specific demands.
@author Peter Donald @version $Revision: 1.2 $ $Date: 2004/05/01 12:48:34 $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|