| 
 | OSGi™ Service Platform Compendium Specification Release 4 Version 4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventConstants
Defines standard names for EventHandler properties.
| Field Summary | |
|---|---|
| static java.lang.String | BUNDLEThe Bundle object of the bundle relevant to the event. | 
| static java.lang.String | BUNDLE_IDThe Bundle id of the bundle relevant to the event. | 
| static java.lang.String | BUNDLE_SIGNERThe Distinguished Names of the signers of the bundle relevant to the event. | 
| static java.lang.String | BUNDLE_SYMBOLICNAMEThe Bundle Symbolic Name of the bundle relevant to the event. | 
| static java.lang.String | BUNDLE_VERSIONThe version of the bundle relevant to the event. | 
| static java.lang.String | DELIVERY_ASYNC_ORDEREDEvent Handler delivery quality value specifying the Event Handler requires asynchronously delivered events be delivered in order. | 
| static java.lang.String | DELIVERY_ASYNC_UNORDEREDEvent Handler delivery quality value specifying the Event Handler does not require asynchronously delivered events be delivered in order. | 
| static java.lang.String | EVENTThe forwarded event object. | 
| static java.lang.String | EVENT_DELIVERYService Registration property specifying the delivery qualities requested by an Event Handler service. | 
| static java.lang.String | EVENT_FILTERService Registration property specifying a filter to further select Events of interest to an Event Handler service. | 
| static java.lang.String | EVENT_TOPICService registration property specifying the Eventtopics of
 interest to an Event Handler service. | 
| static java.lang.String | EXCEPTIONAn exception or error. | 
| static java.lang.String | EXCEPTION_CLASSThe name of the exception type. | 
| static java.lang.String | EXCEPTION_MESSAGEThe exception message. | 
| static java.lang.String | EXECPTION_CLASSDeprecated. As of 1.1, replaced by EXCEPTION_CLASS | 
| static java.lang.String | MESSAGEA human-readable message that is usually not localized. | 
| static java.lang.String | SERVICEA service reference. | 
| static java.lang.String | SERVICE_IDA service's id. | 
| static java.lang.String | SERVICE_OBJECTCLASSA service's objectClass. | 
| static java.lang.String | SERVICE_PIDA service's persistent identity. | 
| static java.lang.String | TIMESTAMPThe time when the event occurred, as reported by System.currentTimeMillis(). | 
| Field Detail | 
|---|
static final java.lang.String EVENT_TOPIC
Event topics of
 interest to an Event Handler service.
 Event handlers SHOULD be registered with this property. Each value of this property is a string that describe the topics in which the handler is interested. An asterisk ('*') may be used as a trailing wildcard. Event Handlers which do not have a value for this property must not receive events. More precisely, the value of each string must conform to the following grammar:
topic-description := '*' | topic ( '/*' )? topic := token ( '/' token )*
 The value of this property must be of type String,
 String[], or Collection<String>.
Event, 
Constant Field Valuesstatic final java.lang.String EVENT_FILTER
Event s of interest to an Event Handler service.
 Event handlers MAY be registered with this property. The value of this property is a string containing an LDAP-style filter specification. Any of the event's properties may be used in the filter expression. Each event handler is notified for any event which belongs to the topics in which the handler has expressed an interest. If the event handler is also registered with this service property, then the properties of the event must also match the filter for the event to be delivered to the event handler.
If the filter syntax is invalid, then the Event Handler must be ignored and a warning should be logged.
 The value of this property must be of type String.
Event, 
Filter, 
Constant Field Valuesstatic final java.lang.String EVENT_DELIVERY
Event handlers MAY be registered with this property. Each value of this property is a string specifying a delivery quality for the Event handler.
 The value of this property must be of type String,
 String[], or Collection<String>.
DELIVERY_ASYNC_ORDERED, 
DELIVERY_ASYNC_UNORDERED, 
Constant Field Valuesstatic final java.lang.String DELIVERY_ASYNC_ORDERED
 This delivery quality value is mutually exclusive with
 DELIVERY_ASYNC_UNORDERED. However, if both this value and
 DELIVERY_ASYNC_UNORDERED are specified for an event handler,
 this value takes precedence.
EVENT_DELIVERY, 
Constant Field Valuesstatic final java.lang.String DELIVERY_ASYNC_UNORDERED
 This delivery quality value is mutually exclusive with
 DELIVERY_ASYNC_ORDERED. However, if both this value and
 DELIVERY_ASYNC_ORDERED are specified for an event handler,
 DELIVERY_ASYNC_ORDERED takes precedence.
EVENT_DELIVERY, 
Constant Field Valuesstatic final java.lang.String BUNDLE_SIGNER
String or Collection of String.
static final java.lang.String BUNDLE_SYMBOLICNAME
String.
static final java.lang.String BUNDLE_ID
Long.
static final java.lang.String BUNDLE
Bundle.
static final java.lang.String BUNDLE_VERSION
Version.
static final java.lang.String EVENT
Object.
static final java.lang.String EXCEPTION
Throwable.
static final java.lang.String EXCEPTION_CLASS
EXCEPTION. The type of the
 value for this event property is String.
static final java.lang.String EXCEPTION_MESSAGE
getMessage() on the exception in the event property
 EXCEPTION. The type of the value for this event property is
 String.
static final java.lang.String MESSAGE
String.
static final java.lang.String SERVICE
ServiceReference.
static final java.lang.String SERVICE_ID
Long.
static final java.lang.String SERVICE_OBJECTCLASS
String[].
static final java.lang.String SERVICE_PID
String or Collection of String.
static final java.lang.String TIMESTAMP
System.currentTimeMillis(). The type of the value for this
 event property is Long.
static final java.lang.String EXECPTION_CLASS
EXCEPTION_CLASS
| 
 | OSGi™ Service Platform Compendium Specification Release 4 Version 4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||