java.module.annotation
Annotation Type ResourceTargetConstraint


@Target(value={SUPERPACKAGE,TYPE})
@Retention(value=RUNTIME)
public @interface ResourceTargetConstraint

Indicates the version constraint of the target module definition that this resource module definition requires. The version constraint is either a version, a version range, or a combination of both, following the format described in the VersionConstraint class. This metadata annotation is applied to the development module, i.e. the superpackage construct.

For example,

    //
    // The version of the target module (i.e. org.foo.xml) that can use this
    // resource module is 1.0 <= x < 2.0.
    //
    @ResourceTargetConstraint("[1.0, 2.0)") 
    superpackage org.foo.xml_fr {
          ...
    }
 

Since:
1.7.0
Author:
Stanley M. Ho
See Also:
VersionConstraint

Optional Element Summary
 String value
          Version constraint of the target module definition.
 

value

public abstract String value
Version constraint of the target module definition.

Default:
"0.0.0.0+"