Package org.rribbit.util
Class RRiBbitUtil
java.lang.Object
org.rribbit.util.RRiBbitUtil
This class simplifies setting up RRiBbit for use.
- Author:
- G.J. Schouten
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequestResponseBus
createRequestResponseBusForLocalUse
(ListenerObjectCreator listenerObjectCreator, boolean setInRRB) Takes care of setting up the various objects needed to use RRiBbit locally.
-
Method Details
-
createRequestResponseBusForLocalUse
public static RequestResponseBus createRequestResponseBusForLocalUse(ListenerObjectCreator listenerObjectCreator, boolean setInRRB) Takes care of setting up the various objects needed to use RRiBbit locally. You have to specify theListenerObjectCreator
, because it's impossible forRRiBbitUtil
to guess a sensible default here, but all of the other objects will be instantiated byRRiBbitUtil
. If you want different objects than the defaults, or if you want to use RRiBbit remotely over the network, you will have to wire them together yourself. The classes that are chosen:- Parameters:
listenerObjectCreator
- TheListenerObjectCreator
to usesetInRRB
- Whether or not to set the createdRequestResponseBus
inRRB
.- Returns:
- A
RequestResponseBus
ready for local use.
-