Skip to content

Commit

Permalink
Code Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-V committed Apr 7, 2014
1 parent ef8999f commit f7b1412
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@

/**
* This gin module provides provides access to the dispatcher singleton, which is used to make calls to the server.
* This
* module requires an {@link ExceptionHandler}, a {@link DefaultClientActionHandlerRegistry} and a
* This module requires an {@link ExceptionHandler}, a {@link DefaultClientActionHandlerRegistry} and a
* {@link SecurityCookieAccessor}. By default, these will be bound to {@link DefaultExceptionHandler},
* {@link DefaultClientActionHandlerRegistry} and {@link DefaultSecurityCookieAccessor} respectively.
* <p/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@
* any(ClientDispatchRequest.class), any(ExecuteCommand.class));
*
* </pre>
*
* @author Brendan Doherty
*/
public abstract class MockHandlerModule extends AbstractModule {

private static class MockClientActionHandlerMapImpl<A extends Action<R>, R extends Result>
implements MockClientActionHandlerMap {

Expand Down Expand Up @@ -188,9 +191,11 @@ protected <A extends Action<R>, R extends Result, H extends ActionHandler<A, R>>
* @param mockHandler Instance of the {@link ActionHandler} to execute
* actions of type {@literal <A>}
*/
protected <A extends Action<R>, R extends Result, H extends AbstractClientActionHandler<A,R>>
void bindMockClientActionHandler(Class<A> actionClass, H mockHandler) {
bind(MockClientActionHandlerMap.class).annotatedWith(UniqueAnnotations.create())
.toInstance(new MockClientActionHandlerMapImpl<A, R>(actionClass, mockHandler));
protected <A extends Action<R>, R extends Result, H extends AbstractClientActionHandler<A,
R>> void bindMockClientActionHandler(
Class<A> actionClass, H mockHandler) {
bind(MockClientActionHandlerMap.class).annotatedWith(
UniqueAnnotations.create()).toInstance(
new MockClientActionHandlerMapImpl<A, R>(actionClass, mockHandler));
}
}

0 comments on commit f7b1412

Please sign in to comment.