org.rribbit.processing
Class LocalRequestProcessor
java.lang.Object
org.rribbit.processing.LocalRequestProcessor
- All Implemented Interfaces:
- RequestProcessor
- Direct Known Subclasses:
- JmsRequestProcessor
public class LocalRequestProcessor
- extends Object
- implements RequestProcessor
This class processes requests on a local machine and exposes its functionality as a simple Java method call. This class is supposed to be used in conjunction with the
LocalRequestDispatcher.
- Author:
- G.J. Schouten
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listenerObjectRetriever
protected ListenerObjectRetriever listenerObjectRetriever
listenerObjectExecutor
protected ListenerObjectExecutor listenerObjectExecutor
LocalRequestProcessor
public LocalRequestProcessor()
- Whenever you use this constructor, be sure to set the
ListenerObjectRetriever AND the ListenerObjectExecutor with the setters provided by this class.
If you don't, runtime NullPointerExceptions will occur.
LocalRequestProcessor
public LocalRequestProcessor(ListenerObjectRetriever listenerObjectRetriever,
ListenerObjectExecutor listenerObjectExecutor)
- This constructor is recommended, since it forces you to specify the
ListenerObjectRetriever and ListenerObjectExecutor. Passing a null value for either
of these will result in a runtime NullPointerException whenever the LocalRequestProcessor is used.
- Parameters:
listenerObjectRetriever - listenerObjectExecutor -
processRequest
public <T> Response<T> processRequest(Request request)
- Description copied from interface:
RequestProcessor
- Processes a
Request and returns the Response.
- Specified by:
processRequest in interface RequestProcessor
- Parameters:
request - The Request to process
- Returns:
- The
Response
getListenerObjectRetriever
public ListenerObjectRetriever getListenerObjectRetriever()
setListenerObjectRetriever
public void setListenerObjectRetriever(ListenerObjectRetriever listenerObjectRetriever)
getListenerObjectExecutor
public ListenerObjectExecutor getListenerObjectExecutor()
setListenerObjectExecutor
public void setListenerObjectExecutor(ListenerObjectExecutor listenerObjectExecutor)
Copyright © 2013 RRiBbit.org. All Rights Reserved.