
public abstract class ContextPublisher extends Publisher
ContextProvider.ContextEventPatterns as their
initial subscriptions and can always add new (and remove old) subscriptions
dynamically.busResourceURI, owner, theBus| Modifier | Constructor and Description |
|---|---|
protected |
ContextPublisher(ModuleContext context,
ContextProvider providerInfo)
Creates a Context Publisher with the associated Context Provider
Information
|
| Modifier and Type | Method and Description |
|---|---|
void |
busDyingOut(AbstractBus b)
This method is called when the bus is stopped to announce this to the bus
members.
|
abstract void |
communicationChannelBroken()
Method to be called when the communication of the Publisher with the
Context Bus is lost.
|
String |
getMyID() |
void |
publish(ContextEvent e)
Forward a Context Event through the Context Bus
|
close, getComment, getLabel, getType, getURI, setComment, setLabelprotected ContextPublisher(ModuleContext context, ContextProvider providerInfo)
context - The context of the Bundle creating the PublisherproviderInfo - The Information describing the Publisherpublic abstract void communicationChannelBroken()
public final void busDyingOut(AbstractBus b)
BusMemberbusDyingOut in class BusMemberb - bus on which this member has been registeredAbstractBuspublic final void publish(ContextEvent e)
e - The Context Event to forwardNullPointerException - if the event is nullpublic String getMyID()
Copyright © 2018 universAAL Consortium. All rights reserved.