Package net.engio.mbassy.bus
Class BusRuntime
- java.lang.Object
-
- net.engio.mbassy.bus.BusRuntime
-
public class BusRuntime extends java.lang.Object
Message bus implementations potentially vary in the features they provide and consequently in the components and properties they expose. The runtime is a container for all those dynamic properties and components and is meant to be passed around between collaborating objects such that they may access the different functionality provided by the bus implementation they all belong to. It is the responsibility of the bus implementation to create and configure the runtime according to its capabilities,
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,java.lang.Object>
properties
private PubSubSupport
provider
-
Constructor Summary
Constructors Constructor Description BusRuntime(PubSubSupport provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusRuntime
add(java.lang.String key, java.lang.Object property)
boolean
contains(java.lang.String key)
<T> T
get(java.lang.String key)
java.util.Collection<java.lang.String>
getKeys()
PubSubSupport
getProvider()
-
-
-
Field Detail
-
provider
private PubSubSupport provider
-
properties
private java.util.Map<java.lang.String,java.lang.Object> properties
-
-
Constructor Detail
-
BusRuntime
public BusRuntime(PubSubSupport provider)
-
-
Method Detail
-
get
public <T> T get(java.lang.String key)
-
getProvider
public PubSubSupport getProvider()
-
getKeys
public java.util.Collection<java.lang.String> getKeys()
-
add
public BusRuntime add(java.lang.String key, java.lang.Object property)
-
contains
public boolean contains(java.lang.String key)
-
-