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


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface VersionSupported

Specifies the maximum version of the control interface that this implementation supports. Allowed on control implementations (interfaces annotated with @ControlImplementation). This version requirement is enforced at compile time of the implementation, and at runtime when the implementation is classloaded.


Required Element Summary
 int major
          The major version of the control interface that this implementation supports.
 
Optional Element Summary
 int minor
          The minor version of the control interface that this implementation supports.
 

Element Detail

major

public abstract int major
The major version of the control interface that this implementation supports. Any version number less than or equal to this value will suffice, implying that this constraint is only valid when backwards 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 of the control interface that this implementation supports. Any version number less than or equal to this value will suffice. Negative values mean that any minor version is acceptable (the default case).

Default:
-1