Package org.apache.felix.dm.context
Class Event
java.lang.Object
org.apache.felix.dm.context.Event
- All Implemented Interfaces:
Comparable<Event>
An event holds all data that belongs to some external event as it comes in via
the 'changed' callback of a dependency.
- Author:
- Felix Project Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Release the resources this event is holding (like service reference for example).intboolean<T> TgetEvent()Returns the actual event object wrapped by this event (a Service Dependency, a Bundle for Bundle Dependency, etc...).<K,V> Dictionary <K, V> Returns the properties of the actual event object wrapped by this event (Service Dependency properties, ...).inthashCode()
-
Field Details
-
EMPTY_PROPERTIES
-
-
Constructor Details
-
Event
-
-
Method Details
-
getEvent
public <T> T getEvent()Returns the actual event object wrapped by this event (a Service Dependency, a Bundle for Bundle Dependency, etc...). -
getProperties
Returns the properties of the actual event object wrapped by this event (Service Dependency properties, ...). -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<Event>
-
close
public void close()Release the resources this event is holding (like service reference for example).
-