public interface WireAdminListener
WireAdminListener objects are registered with the Framework service
registry and are notified with a
WireAdminEvent object when an event
WireAdminListener objects can inspect the received
WireAdminEvent object to determine its type, the
with which it is associated, and the Wire Admin service that broadcasts the
WireAdminListener objects must be registered with a service property
WireConstants.WIREADMIN_EVENTS whose value is a bitwise OR of all the
event types the listener is interested in receiving.
Integer mask = Integer.valueOf(WIRE_TRACE | WIRE_CONNECTED | WIRE_DISCONNECTED); Hashtable ht = new Hashtable(); ht.put(WIREADMIN_EVENTS, mask); context.registerService(WireAdminListener.class.getName(), this, ht);If a
WireAdminListener object is registered without a service
WireConstants.WIREADMIN_EVENTS, then the
WireAdminListener will receive no events.
Security Considerations. Bundles wishing to monitor
objects will require
WireAdminListener service. Since
Wire objects, care must be taken in assigning
permission to register a
void wireAdminEvent(WireAdminEvent event)
The event object will be of an event type specified in this
WireConstants.WIREADMIN_EVENTS service property.
event - The
Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0