Class InProcessRequestTransport
java.lang.Object
com.google.web.bindery.requestfactory.server.testing.InProcessRequestTransport
- All Implemented Interfaces:
RequestTransport
A RequestTransport that calls a
SimpleRequestProcessor. This test can
be used for end-to-end tests of RequestFactory service methods in non-GWT
test suites.
ServiceLayer serviceLayer = ServiceLayer.create(); SimpleRequestProcessor processor = new SimpleRequestProcessor(serviceLayer); EventBus eventBus = new SimpleEventBus(); MyRequestFactory f = RequestFactorySource.create(MyRequestFactory.class); f.initialize(eventBus, new InProcessRequestTransport(processor));
- See Also:
-
com.google.web.bindery.vm.RequestFactorySourceServiceLayer.create()SimpleEventBusSimpleRequestProcessor
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.web.bindery.requestfactory.shared.RequestTransport
RequestTransport.TransportReceiver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsend(String payload, RequestTransport.TransportReceiver receiver) Called by the RequestFactory implementation.
-
Constructor Details
-
InProcessRequestTransport
-
-
Method Details