org.jvnet.hk2.annotations
Annotation Type Priority


Deprecated. Not fully supported in Hk2

@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface Priority

Annotation to define a service priority level. These levels are not yet part of the components resolution or lookups, meaning that habitat lookups that return multiple services implementation will not order such services based on a potential level value. It is the responsibility of the receiver of such services to order these appropriately if needed.

Priority is supported with respect to the default RunLevelService and lifecycle startup events.


Optional Element Summary
 int value
          Deprecated. level value, should be between 1 (highest) and 9 (lowest).
 

value

public abstract int value
Deprecated. 
level value, should be between 1 (highest) and 9 (lowest).

Returns:
the level
Default:
5


Copyright © 2012 Oracle Corporation. All Rights Reserved.