public class EventAdminSecurityDecorator
extends java.lang.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(java.lang.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.EventAdminevent - 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.EventAdminevent - The event that should be sendEventAdmin.sendEvent(org.osgi.service.event.Event)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode(),
EventAdminpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object to compare with this decorator's service instanceObject.equals(java.lang.Object),
EventAdminCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.