org.jvnet.hk2.component
Class Constants

java.lang.Object
  extended by org.jvnet.hk2.component.Constants

public class Constants
extends Object

Common metadata properties used by the inhabitant / habitat.

Author:
Jeff Trent

Field Summary
static String EXECUTOR_HABITAT_LISTENERS_AND_TRACKERS
           
static String EXECUTOR_INHABITANT_ACTIVATOR
           
static String EXECUTOR_INHABITANT_INJECTION_MANAGER
          The executor service names used by Hk2
static String OBJECTCLASS
          Represents class / contract type name(s).
static String QUALIFIER
          Qualifier (annotation names) used to describe the service.
static String SERVICE_RANKING
          Service property identifying a service's ranking number.
 
Constructor Summary
Constants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECTCLASS

public static final String OBJECTCLASS
Represents class / contract type name(s). Only used by Trackers at present.

See Also:
Constant Field Values

SERVICE_RANKING

public static final String SERVICE_RANKING
Service property identifying a service's ranking number.

The service ranking is used by the Framework to determine the natural order of services (when used specifically with the Tracker).

The default ranking is zero (0). A service with a ranking of Integer.MAX_VALUE is very likely to be returned as the default service, whereas a service with a ranking of Integer.MIN_VALUE is very unlikely to be returned.

If the supplied property value is not of type Integer, it is deemed to have a ranking value of zero.

Hk2 manages its meta information as String, but converts to Integer for comparisons.

See Also:
Constant Field Values

QUALIFIER

public static final String QUALIFIER
Qualifier (annotation names) used to describe the service.

See Also:
Constant Field Values

EXECUTOR_INHABITANT_INJECTION_MANAGER

public static final String EXECUTOR_INHABITANT_INJECTION_MANAGER
The executor service names used by Hk2

See Also:
Constant Field Values

EXECUTOR_INHABITANT_ACTIVATOR

public static final String EXECUTOR_INHABITANT_ACTIVATOR
See Also:
Constant Field Values

EXECUTOR_HABITAT_LISTENERS_AND_TRACKERS

public static final String EXECUTOR_HABITAT_LISTENERS_AND_TRACKERS
See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()


Copyright © 2011 Oracle Corporation. All Rights Reserved.