Interface WireAdminListener
-
public interface WireAdminListenerListener for Wire Admin Events.WireAdminListenerobjects are registered with the Framework service registry and are notified with aWireAdminEventobject when an event is broadcast.WireAdminListenerobjects can inspect the receivedWireAdminEventobject to determine its type, theWireobject with which it is associated, and the Wire Admin service that broadcasts the event.WireAdminListenerobjects must be registered with a service propertyWireConstants.WIREADMIN_EVENTSwhose value is a bitwise OR of all the event types the listener is interested in receiving.For example:
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 aWireAdminListenerobject is registered without a service propertyWireConstants.WIREADMIN_EVENTS, then theWireAdminListenerwill receive no events.Security Considerations. Bundles wishing to monitor
WireAdminEventobjects will requireServicePermission[WireAdminListener,REGISTER]to register aWireAdminListenerservice. SinceWireAdminEventobjects containWireobjects, care must be taken in assigning permission to register aWireAdminListenerservice.- Author:
- $Id: 39a6c6c3618d5bb6e3fb14996dd80c99dd70341d $
- See Also:
WireAdminEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwireAdminEvent(WireAdminEvent event)Receives notification of a broadcastWireAdminEventobject.
-
-
-
Method Detail
-
wireAdminEvent
void wireAdminEvent(WireAdminEvent event)
Receives notification of a broadcastWireAdminEventobject. The event object will be of an event type specified in thisWireAdminListenerservice'sWireConstants.WIREADMIN_EVENTSservice property.- Parameters:
event- TheWireAdminEventobject.
-
-