java.module.annotation
Annotation Type ResourceModuleConstraint


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

Indicates the version constraint of the resource module definitions that this target 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,

    //
    // This target module only uses resource modules with version 1.0 <= x < 2.0.
    //
    @ResourceModuleConstraint("[1.0, 2.0)")
    superpackage org.foo.xml {
         ...
    }
 

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

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

value

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

Default:
"0.0.0.0+"