public class EventRegistry extends Object
addPossibleEventConsumer(Object, VaadinApplicationContext)
.Constructor and Description |
---|
EventRegistry(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
addPossibleEventConsumer(Object possibleEventConsumer,
VaadinApplicationContext applicationContext)
Adds the possibleEventConsumer as an EventListener/EventConsumer to the
OSGi registry.
The event consumer is registered when: The object has at least one method annotated with @EventConsumer The annotated method has only one parameter. |
EventProxy |
getScope(VaadinApplicationContext vaadinApplicationContext) |
public EventRegistry(org.osgi.framework.BundleContext bundleContext)
public void addPossibleEventConsumer(Object possibleEventConsumer, VaadinApplicationContext applicationContext)
VaadinApplicationContext
parameter is used to bind the event
consumer to the user session (otherwise all users would be informed when
one user provokes an event notification).possibleEventConsumer
- An object with or without an annotation @EventConsumer.applicationContext
- must not be null. is used to bind the event consumer to the
user session (otherwise all users would be informed when one
user provokes an event notification).EventConsumer}, {@link EventListener}
public EventProxy getScope(VaadinApplicationContext vaadinApplicationContext)
Copyright © 2021. All rights reserved.