org.hudsonci.gwt.common.restygwt.internal
Class ServiceFailureNotifierImpl

java.lang.Object
  extended by org.hudsonci.gwt.common.restygwt.internal.ServiceFailureNotifierImpl
All Implemented Interfaces:
ServiceFailureNotifier

@Singleton
public class ServiceFailureNotifierImpl
extends Object
implements ServiceFailureNotifier

Default implementation of ServiceFailureNotifier. The failure will be logged and the WaitPresenter.stopWaiting() will be called when necessary. // FIXME: Probably want a generic component to handle operation success/failure bits and show/hide of the wait dialog.

Since:
2.1.0
Author:
Jason Dillon, Jamie Whitehouse

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hudsonci.gwt.common.restygwt.ServiceFailureNotifier
ServiceFailureNotifier.MessagesResource
 
Constructor Summary
ServiceFailureNotifierImpl(AlertDialogPresenter alertDialogPresenter, ServiceFailureNotifier.MessagesResource messages, WaitPresenter waitWidget)
           
 
Method Summary
 void displayFailure(String message, org.fusesource.restygwt.client.Method method, Throwable cause)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFailureNotifierImpl

@Inject
public ServiceFailureNotifierImpl(AlertDialogPresenter alertDialogPresenter,
                                         ServiceFailureNotifier.MessagesResource messages,
                                         WaitPresenter waitWidget)
Method Detail

displayFailure

public void displayFailure(String message,
                           org.fusesource.restygwt.client.Method method,
                           Throwable cause)
Specified by:
displayFailure in interface ServiceFailureNotifier


Copyright © 2004-2011 Hudson. All Rights Reserved.