|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.jmsmvc4swing.jms.ControllerReceiver
public class ControllerReceiver
Receives a JMS message for the controller and selects the appropriate handler.
| Constructor Summary | |
|---|---|
ControllerReceiver(JmsJndiEnvironment env,
java.lang.String topicName,
Controller ctrl)
Constructor with all necessary data. |
|
| Method Summary | |
|---|---|
void |
addRequestHandler(MethodHandler handler)
Adds a new handler for a controller method. |
java.lang.String |
getTopicName()
Returns the topic for this controller. |
boolean |
isStopped()
Checks if the JMS subscription is already cancelled. |
void |
onMessage(javax.jms.Message message)
|
void |
start()
Opens the JMS connection and listens for an appropriate start message. |
void |
stop()
Terminate the JMS subscription. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ControllerReceiver(JmsJndiEnvironment env,
java.lang.String topicName,
Controller ctrl)
env - Context.topicName - Topic the listener subscribes to.ctrl - Controller to use.| Method Detail |
|---|
public final java.lang.String getTopicName()
public final void start()
start in interface IControllerReceiverpublic final void onMessage(javax.jms.Message message)
onMessage in interface javax.jms.MessageListenerpublic final boolean isStopped()
isStopped in interface IControllerReceiverpublic final void stop()
stop in interface IControllerReceiverpublic final void addRequestHandler(MethodHandler handler)
handler - Handles a single JMS controller message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||