public class EventHandlerProxy
extends java.lang.Object
Constructor and Description |
---|
EventHandlerProxy(org.apache.felix.eventadmin.impl.handler.EventHandlerTracker.HandlerContext context,
org.osgi.framework.ServiceReference<org.osgi.service.event.EventHandler> reference)
Create an EventHandlerProxy.
|
Modifier and Type | Method and Description |
---|---|
void |
blackListHandler()
Blacklist the handler.
|
boolean |
canDeliver(org.osgi.service.event.Event event)
Check if this handler is allowed to receive the event
- blacklisted
- check filter
- check permission
|
void |
dispose()
Dispose the proxy and release the handler
|
java.lang.String[] |
getTopics()
Get the topics of this handler.
|
boolean |
isAsyncOrderedDelivery()
Should async events be delivered in order?
|
void |
sendEvent(org.osgi.service.event.Event event)
Send the event.
|
boolean |
update()
Update the state with current properties from the service
|
boolean |
useTimeout()
Should a timeout be used for this handler?
|
public EventHandlerProxy(org.apache.felix.eventadmin.impl.handler.EventHandlerTracker.HandlerContext context, org.osgi.framework.ServiceReference<org.osgi.service.event.EventHandler> reference)
context
- The handler contextreference
- Reference to the EventHandlerpublic boolean update()
true
if the handler configuration is valid.public void dispose()
public java.lang.String[] getTopics()
null
is returnedpublic boolean canDeliver(org.osgi.service.event.Event event)
public boolean useTimeout()
public boolean isAsyncOrderedDelivery()
public void sendEvent(org.osgi.service.event.Event event)
public void blackListHandler()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.