org.apache.beehive.controls.api.versioning
Annotation Type VersionRequired


@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public @interface VersionRequired

Specifies the minimum version of the control interface that this extension requires. Allowed on control extensions (interfaces annotated with


Required Element Summary
 int major
          The major version value required for this control extension or instance declaration to work.
 
Optional Element Summary
 int minor
          The minor version value required for this control extension or instance declaration to work.
 

Element Detail

major

public abstract int major
The major version value required for this control extension or instance declaration to work. Any version number greater than or equal to this value will suffice, implying that this requirement is valid only when back compatibility is part of the contract when increasing the version number. Negative values mean that any major version is acceptable (in which case this annotation should probably just not be present).

minor

public abstract int minor
The minor version value required for this control extension or instance declaration to work. Any version number greater than or equal to this value will suffice. Negative values mean that any minor version is acceptable (the default case).

Default:
-1