public class EventAdminSecurityDecorator extends Object implements org.osgi.service.event.EventAdmin
Constructor and Description |
---|
EventAdminSecurityDecorator(org.osgi.framework.Bundle bundle,
org.osgi.service.event.EventAdmin admin)
The constructor of this decorator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Overrides equals() and delegates the call to the decorated service
instance.
|
int |
hashCode()
Overrides hashCode() and returns the hash code of the decorated
service instance.
|
void |
postEvent(org.osgi.service.event.Event event)
This method checks whether the given (i.e., calling) bundle has
appropriate permissions to post an event to the targeted topic.
|
void |
sendEvent(org.osgi.service.event.Event event)
This method checks whether the given (i.e., calling) bundle has
appropriate permissions to send an event to the targeted topic.
|
public EventAdminSecurityDecorator(org.osgi.framework.Bundle bundle, org.osgi.service.event.EventAdmin admin)
bundle
- The calling bundle used to determine appropriate permissionsadmin
- The decorated service instancepublic void postEvent(org.osgi.service.event.Event event)
postEvent
in interface org.osgi.service.event.EventAdmin
event
- The event that should be postedEventAdmin.postEvent(org.osgi.service.event.Event)
public void sendEvent(org.osgi.service.event.Event event)
sendEvent
in interface org.osgi.service.event.EventAdmin
event
- The event that should be sendEventAdmin.sendEvent(org.osgi.service.event.Event)
public int hashCode()
hashCode
in class Object
Object.hashCode()
,
EventAdmin
public boolean equals(Object o)
equals
in class Object
o
- The object to compare with this decorator's service instanceObject.equals(java.lang.Object)
,
EventAdmin
Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.