See: Description
| Interface | Description |
|---|---|
| Dispatch |
The Dispatch Interface provides methods to produce and dispatch
a response object from a request object.
|
| DispatchTarget |
A DispatchTarget is a convience interface that maps from object/methodname
to object/method.
|
| Request |
The Request interface encapsulates all information needed for
generating and dispatching a response for a request.
|
| RequestDelegate |
The RequestDelegate interface describes a helper for the request dispatching.
|
| Response |
The Response interface encapsulates the result of a request.
|
| Class | Description |
|---|---|
| AbstractDispatcher |
The dispatcher class provides methods to produce and dispatch
a response object from a request object.
|
| AbstractRequest |
This class provides the common stuff of all Request classes.
|
| DefaultDispatchTarget |
DefaultDispatchTarget is a default implementation for the DispatchTarget interface.
|
| DefaultResponse |
DefaultResponse is a default implementation for the Response interface.
|
The data transfer ("xfer") library is the base for a synchronos or asynchronos access of the business core.
Each access towards the business core functionality (regardless if
that code is executed locally or remote) is wrapped in a request
object (see ), each
request returns a result (see Request). Response
The result is either valid (then will return the result object)
or not valid (then getResult() will return the error object).getError()
This simple but rigid "one request either returns an error or a valid
result" abstraction has proven it's usefulness in various projects.
The request object gets executed by one of the methods of an implementation of the
interface. The execution
is either synchronous or asynchronous, and one variant dispatches the
result in the Swing EDT (Event Dispatch Thread) or the application thread if JavaFX is used.Dispatch
An other valuable capability provided by the xfer library is the easy
integration of mock-up code for testing:
If the Java property class name.delegate is set and
references a class that implements the interface, this
implementation is used to generate the response instead the method
coded in the request object.
RequestDelegate
Copyright © 2014 Jürgen Zeller (privat). All rights reserved.