Class Event

java.lang.Object
org.apache.felix.dm.context.Event
All Implemented Interfaces:
Comparable<Event>

public class Event extends Object implements 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 Details

  • Constructor Details

    • Event

      public Event(Object 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

      public <K, V> Dictionary<K,V> getProperties()
      Returns the properties of the actual event object wrapped by this event (Service Dependency properties, ...).
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Event o)
      Specified by:
      compareTo in interface Comparable<Event>
    • close

      public void close()
      Release the resources this event is holding (like service reference for example).