A B C D E F G H I L M O P R S U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractAdapter - Class in org.apache.felix.eventadmin.impl.adapter
-
Abstract base class for all adapters.
- AbstractAdapter(EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.adapter.AbstractAdapter
-
The constructor of the adapter.
- addingService(ServiceReference<EventHandler>) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
- addToDenylistCheck(HandlerTask) - Method in class org.apache.felix.eventadmin.impl.tasks.DenylistLatch
-
Adds a handler task to the timeout based deny list checking.
- AsyncDeliverTasks - Class in org.apache.felix.eventadmin.impl.tasks
-
This class does the actual work of the asynchronous event dispatch.
- AsyncDeliverTasks(DefaultThreadPool, SyncDeliverTasks) - Constructor for class org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks
-
The constructor of the class that will use the asynchronous.
- awaitAndDenylistCheck() - Method in class org.apache.felix.eventadmin.impl.tasks.DenylistLatch
-
Causes current thread to wait until each handler has called countDown.
B
- bundleChanged(BundleEvent) - Method in class org.apache.felix.eventadmin.impl.adapter.BundleEventAdapter
-
Once a bundle event is received this method assembles and posts an event via the
EventAdmin
as specified in 113.6.4 OSGi R4 compendium. - BundleEventAdapter - Class in org.apache.felix.eventadmin.impl.adapter
-
This class registers itself as a listener for bundle events and posts them via the EventAdmin as specified in 113.6.4 OSGi R4 compendium.
- BundleEventAdapter(BundleContext, EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.adapter.BundleEventAdapter
-
The constructor of the adapter.
C
- canDeliver(Event) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Check if this handler is allowed to receive the event - denied - check filter - check permission
- checkForDenylist() - Method in class org.apache.felix.eventadmin.impl.tasks.HandlerTask
-
Check to see if we need to deny this handler
- close() - Method in class org.apache.felix.eventadmin.impl.tasks.DefaultThreadPool
-
Close the pool i.e, stop pooling threads.
- configure(int) - Method in class org.apache.felix.eventadmin.impl.tasks.DefaultThreadPool
-
Configure a new pool size.
- countDown() - Method in class org.apache.felix.eventadmin.impl.tasks.DenylistLatch
-
Count down the number of handlers blocking event completion.
- createEventTopicMatchers(String[]) - Static method in class org.apache.felix.eventadmin.impl.util.Matchers
- createPackageMatchers(String[]) - Static method in class org.apache.felix.eventadmin.impl.util.Matchers
- createPublishPermission(String) - Static method in class org.apache.felix.eventadmin.impl.security.PermissionsUtil
-
Creates a
TopicPermission
for the given topic and the type PUBLISH - createSubscribePermission(String) - Static method in class org.apache.felix.eventadmin.impl.security.PermissionsUtil
-
Creates a
TopicPermission
for the given topic and the type SUBSCRIBE Note that a
D
- DefaultThreadPool - Class in org.apache.felix.eventadmin.impl.tasks
-
A thread pool that allows to execute tasks using pooled threads in order to ease the thread creation overhead.
- DefaultThreadPool(int, boolean) - Constructor for class org.apache.felix.eventadmin.impl.tasks.DefaultThreadPool
-
Create a new pool.
- denyEventHandler() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Deny the handler.
- DenylistLatch - Class in org.apache.felix.eventadmin.impl.tasks
-
A latch that checks handlers for denying on an interval.
- DenylistLatch(int, long) - Constructor for class org.apache.felix.eventadmin.impl.tasks.DenylistLatch
- destroy(BundleContext) - Method in class org.apache.felix.eventadmin.impl.adapter.AbstractAdapter
- destroy(BundleContext) - Method in class org.apache.felix.eventadmin.impl.adapter.BundleEventAdapter
- destroy(BundleContext) - Method in class org.apache.felix.eventadmin.impl.adapter.FrameworkEventAdapter
- destroy(BundleContext) - Method in class org.apache.felix.eventadmin.impl.adapter.LogEventAdapter
- destroy(BundleContext) - Method in class org.apache.felix.eventadmin.impl.adapter.ServiceEventAdapter
- dispose() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Dispose the proxy and release the handler
E
- equals(Object) - Method in class org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator
-
Overrides
equals()
and delegates the call to the decorated service instance. - EventAdminImpl - Class in org.apache.felix.eventadmin.impl.handler
-
This is the actual implementation of the OSGi R4 Event Admin Service (see the Compendium 113 for details).
- EventAdminImpl(BundleContext, DefaultThreadPool, DefaultThreadPool, int, String[], boolean, String[]) - Constructor for class org.apache.felix.eventadmin.impl.handler.EventAdminImpl
-
The constructor of the
EventAdmin
implementation. - EventAdminImpl.EventHandlerMBean - Interface in org.apache.felix.eventadmin.impl.handler
- EventAdminSecurityDecorator - Class in org.apache.felix.eventadmin.impl.security
-
This class is a decorator for an
EventAdmin
service. - EventAdminSecurityDecorator(Bundle, EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator
-
The constructor of this decorator.
- EventHandlerProxy - Class in org.apache.felix.eventadmin.impl.handler
-
This is a proxy for event handlers.
- EventHandlerProxy(EventHandlerTracker.HandlerContext, ServiceReference<EventHandler>) - Constructor for class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Create an EventHandlerProxy.
- EventHandlerTracker - Class in org.apache.felix.eventadmin.impl.handler
-
The event handler tracker keeps track of all event handler services.
- EventHandlerTracker(BundleContext) - Constructor for class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
- execute(Collection<EventHandlerProxy>, Event) - Method in class org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks
-
This does not block an unrelated thread used to send a synchronous event.
- execute(Collection<EventHandlerProxy>, Event, boolean) - Method in class org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks
-
This blocks an unrelated thread used to send a synchronous event until the event is send (or a timeout occurs).
- executeTask(Runnable) - Method in class org.apache.felix.eventadmin.impl.tasks.DefaultThreadPool
-
Execute the task in a free thread or create a new one.
F
- frameworkEvent(FrameworkEvent) - Method in class org.apache.felix.eventadmin.impl.adapter.FrameworkEventAdapter
-
Once a framework event is received this method assembles and posts an event via the
EventAdmin
as specified in 113.6.3 OSGi R4 compendium. - FrameworkEventAdapter - Class in org.apache.felix.eventadmin.impl.adapter
-
This class registers itself as a listener for framework events and posts them via the EventAdmin as specified in 113.6.3 OSGi R4 compendium.
- FrameworkEventAdapter(BundleContext, EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.adapter.FrameworkEventAdapter
-
The constructor of the adapter.
G
- getDeniedEventHandlers() - Method in interface org.apache.felix.eventadmin.impl.handler.EventAdminImpl.EventHandlerMBean
- getDeniedHandlers() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
-
Get all handlers for this event
- getEventAdmin() - Method in class org.apache.felix.eventadmin.impl.adapter.AbstractAdapter
- getHandlerInfoMBean() - Method in class org.apache.felix.eventadmin.impl.handler.EventAdminImpl
- getHandlers(Event) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
-
Get all handlers for this event
- getInfo() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Get some info about the event handler
- getLogger() - Static method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Returns the singleton instance of this LogWrapper that can be used to send log messages to all currently available LogServices or to standard output, respectively.
- getLogLevel() - Method in class org.apache.felix.eventadmin.impl.util.LogWrapper
- getPoolSize() - Method in class org.apache.felix.eventadmin.impl.tasks.DefaultThreadPool
-
Returns current pool size.
- getService(Bundle, ServiceRegistration<EventAdmin>) - Method in class org.apache.felix.eventadmin.impl.security.SecureEventAdminFactory
-
Returns a new
EventAdminSecurityDecorator
initialized with the givenEventAdmin
. - getTopics() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Get the topics of this handler.
H
- HandlerTask - Class in org.apache.felix.eventadmin.impl.tasks
-
A task that processes an event handler
- HandlerTask(EventHandlerProxy, Event, long, DenylistLatch) - Constructor for class org.apache.felix.eventadmin.impl.tasks.HandlerTask
- hashCode() - Method in class org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator
-
Overrides
hashCode()
and returns the hash code of the decorated service instance.
I
- isAsyncOrderedDelivery() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Should async events be delivered in order?
- isDenied() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
L
- log(int, String) - Method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Log a message with the given log level.
- log(int, String, Throwable) - Method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Log a message with the given log level and the associated exception.
- log(ServiceReference<?>, int, String) - Method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Log a message with the given log level together with the associated service reference.
- log(ServiceReference<?>, int, String, Throwable) - Method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Log a message with the given log level, the associated service reference and exception.
- LOG_DEBUG - Static variable in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
DEBUG LEVEL
- LOG_ERROR - Static variable in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
ERROR LEVEL
- LOG_INFO - Static variable in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
INFO LEVEL
- LOG_WARNING - Static variable in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
WARNING LEVEL
- LogEventAdapter - Class in org.apache.felix.eventadmin.impl.adapter
-
This class registers itself as a listener for
LogReaderService
services with the framework and subsequently, aLogListener
callback with any currently availableLogReaderService
. - LogEventAdapter(BundleContext, EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.adapter.LogEventAdapter
-
The constructor of the adapter.
- LogWrapper - Class in org.apache.felix.eventadmin.impl.util
-
This class mimics the standard OSGi
LogService
interface.
M
- match(String) - Method in interface org.apache.felix.eventadmin.impl.util.Matchers.Matcher
- Matchers - Class in org.apache.felix.eventadmin.impl.util
- Matchers() - Constructor for class org.apache.felix.eventadmin.impl.util.Matchers
- Matchers.Matcher - Interface in org.apache.felix.eventadmin.impl.util
-
The matcher interface for checking if timeout handling is disabled for the handler.
- modifiedService(ServiceReference<EventHandler>, EventHandlerProxy) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
O
- org.apache.felix.eventadmin.impl.adapter - package org.apache.felix.eventadmin.impl.adapter
- org.apache.felix.eventadmin.impl.handler - package org.apache.felix.eventadmin.impl.handler
- org.apache.felix.eventadmin.impl.security - package org.apache.felix.eventadmin.impl.security
- org.apache.felix.eventadmin.impl.tasks - package org.apache.felix.eventadmin.impl.tasks
- org.apache.felix.eventadmin.impl.util - package org.apache.felix.eventadmin.impl.util
P
- PermissionsUtil - Class in org.apache.felix.eventadmin.impl.security
-
Utility class for permissions.
- PermissionsUtil() - Constructor for class org.apache.felix.eventadmin.impl.security.PermissionsUtil
- postEvent(Event) - Method in class org.apache.felix.eventadmin.impl.handler.EventAdminImpl
-
Post an asynchronous event.
- postEvent(Event) - Method in class org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator
-
This method checks whether the given (i.e., calling) bundle has appropriate permissions to post an event to the targeted topic.
R
- removedService(ServiceReference<EventHandler>, EventHandlerProxy) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
- run() - Method in class org.apache.felix.eventadmin.impl.tasks.HandlerTask
-
Run Hander Event
- runWithoutDenylistTiming() - Method in class org.apache.felix.eventadmin.impl.tasks.HandlerTask
S
- SecureEventAdminFactory - Class in org.apache.felix.eventadmin.impl.security
-
This class is a factory that secures a given
EventAdmin
service by wrapping it with a new instance of anEventAdminSecurityDecorator
on any call to itsgetService()
method. - SecureEventAdminFactory(EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.security.SecureEventAdminFactory
-
The constructor of the factory.
- sendEvent(Event) - Method in class org.apache.felix.eventadmin.impl.handler.EventAdminImpl
-
Send a synchronous event.
- sendEvent(Event) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Send the event.
- sendEvent(Event) - Method in class org.apache.felix.eventadmin.impl.security.EventAdminSecurityDecorator
-
This method checks whether the given (i.e., calling) bundle has appropriate permissions to send an event to the targeted topic.
- serviceChanged(ServiceEvent) - Method in class org.apache.felix.eventadmin.impl.adapter.LogEventAdapter
-
Once a
LogReaderService
register event is received this method registers aLogListener
with the received service that assembles and posts any log event via theEventAdmin
as specified in 113.6.6 OSGi R4 compendium. - serviceChanged(ServiceEvent) - Method in class org.apache.felix.eventadmin.impl.adapter.ServiceEventAdapter
-
Once a Service event is received this method assembles and posts an event via the
EventAdmin
as specified in 113.6.5 OSGi R4 compendium. - ServiceEventAdapter - Class in org.apache.felix.eventadmin.impl.adapter
-
This class registers itself as a listener for service events and posts them via the EventAdmin as specified in 113.6.5 OSGi R4 compendium.
- ServiceEventAdapter(BundleContext, EventAdmin) - Constructor for class org.apache.felix.eventadmin.impl.adapter.ServiceEventAdapter
-
The constructor of the adapter.
- setContext(BundleContext) - Static method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Set the
BundleContext
of the bundle. - setLogLevel(int) - Method in class org.apache.felix.eventadmin.impl.util.LogWrapper
-
Change the current log level.
- stop() - Method in class org.apache.felix.eventadmin.impl.handler.EventAdminImpl
-
This method can be used to stop the delivery of events.
- SyncDeliverTasks - Class in org.apache.felix.eventadmin.impl.tasks
-
This class does the actual work of the synchronous event delivery.
- SyncDeliverTasks(DefaultThreadPool, long) - Constructor for class org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks
-
Construct a new sync deliver tasks.
- SyncThread - Class in org.apache.felix.eventadmin.impl.tasks
-
This thread class is used for sending the events synchronously.
- SyncThread(Runnable) - Constructor for class org.apache.felix.eventadmin.impl.tasks.SyncThread
-
Constructor used by the thread pool.
U
- ungetService(Bundle, ServiceRegistration<EventAdmin>, EventAdmin) - Method in class org.apache.felix.eventadmin.impl.security.SecureEventAdminFactory
-
This method doesn't do anything at the moment.
- update() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Update the state with current properties from the service
- update(int, String[], boolean, String[]) - Method in class org.apache.felix.eventadmin.impl.handler.EventAdminImpl
-
Update the event admin with new configuration.
- update(long) - Method in class org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks
-
Update the timeout configuration
- update(String[], boolean) - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerTracker
-
Update the timeout configuration.
- useTimeout() - Method in class org.apache.felix.eventadmin.impl.handler.EventHandlerProxy
-
Should a timeout be used for this handler?
- useTimeout() - Method in class org.apache.felix.eventadmin.impl.tasks.HandlerTask
-
This method defines if a timeout handling should be used for the task.
All Classes All Packages