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 RequestResponseBuscreateRequestResponseBusForLocalUse(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 forRRiBbitUtilto 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- TheListenerObjectCreatorto usesetInRRB- Whether or not to set the createdRequestResponseBusinRRB.- Returns:
- A
RequestResponseBusready for local use.
-