Interface EventConstants
EventHandler properties.- Version:
- $Revision: 7368 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Bundle object of the bundle relevant to the event.static final StringThe Bundle id of the bundle relevant to the event.static final StringThe Distinguished Names of the signers of the bundle relevant to the event.static final StringThe Bundle Symbolic Name of the bundle relevant to the event.static final StringThe version of the bundle relevant to the event.static final StringThe forwarded event object.static final StringService Registration property (namedevent.filter) specifying a filter to further selectEvents of interest to a Event Handler service.static final StringService registration property (namedevent.topics) specifying theEventtopics of interest to a Event Handler service.static final StringAn exception or error.static final StringThe name of the exception type.static final StringThe exception message.static final StringDeprecated.As of 1.1, replaced by EXCEPTION_CLASSstatic final StringA human-readable message that is usually not localized.static final StringA service reference.static final StringA service's id.static final StringA service's objectClass.static final StringA service's persistent identity.static final StringThe time when the event occurred, as reported bySystem.currentTimeMillis().
-
Field Details
-
EVENT_TOPIC
Service registration property (namedevent.topics) specifying theEventtopics of interest to a Event Handler service.Event handlers SHOULD be registered with this property. The value of the property is a string or an array of strings 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 )*
- See Also:
-
EVENT_FILTER
Service Registration property (namedevent.filter) specifying a filter to further selectEvents of interest to a 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.
- See Also:
-
BUNDLE_SIGNER
The Distinguished Names of the signers of the bundle relevant to the event. The type of the value for this event property isStringorCollectionofString.- See Also:
-
BUNDLE_SYMBOLICNAME
The Bundle Symbolic Name of the bundle relevant to the event. The type of the value for this event property isString.- See Also:
-
BUNDLE_ID
The Bundle id of the bundle relevant to the event. The type of the value for this event property isLong.- Since:
- 1.1
- See Also:
-
BUNDLE
The Bundle object of the bundle relevant to the event. The type of the value for this event property isBundle.- Since:
- 1.1
- See Also:
-
BUNDLE_VERSION
The version of the bundle relevant to the event. The type of the value for this event property isVersion.- Since:
- 1.2
- See Also:
-
EVENT
The forwarded event object. Used when rebroadcasting an event that was sent via some other event mechanism. The type of the value for this event property isObject.- See Also:
-
EXCEPTION
An exception or error. The type of the value for this event property isThrowable.- See Also:
-
EXCEPTION_CLASS
-
EXCEPTION_MESSAGE
-
MESSAGE
A human-readable message that is usually not localized. The type of the value for this event property isString.- See Also:
-
SERVICE
A service reference. The type of the value for this event property isServiceReference.- See Also:
-
SERVICE_ID
A service's id. The type of the value for this event property isLong.- See Also:
-
SERVICE_OBJECTCLASS
A service's objectClass. The type of the value for this event property isString[].- See Also:
-
SERVICE_PID
A service's persistent identity. The type of the value for this event property isString.- See Also:
-
TIMESTAMP
The time when the event occurred, as reported bySystem.currentTimeMillis(). The type of the value for this event property isLong.- See Also:
-
EXECPTION_CLASS
Deprecated.As of 1.1, replaced by EXCEPTION_CLASSThis constant was released with an incorrectly spelled name. It has been replaced byEXCEPTION_CLASS- See Also:
-