Package com.google.common.eventbus

Examples of com.google.common.eventbus.SubscriberExceptionHandler


    protected EventBus newEventBus() {
        return new EventBus(newEventBusSubscriberExceptionHandler());
    }

    protected SubscriberExceptionHandler newEventBusSubscriberExceptionHandler() {
        return new SubscriberExceptionHandler(){
            @Override
            public void handleException(Throwable exception, SubscriberExceptionContext context) {
                if(exception instanceof RecoverableException ||
                   exception instanceof NonRecoverableException) {
                    getTransactionManager().getTransaction().setAbortCause(new IsisApplicationException(exception));
View Full Code Here


    protected EventBus newEventBus() {
        return new EventBus(newEventBusSubscriberExceptionHandler());
    }

    protected SubscriberExceptionHandler newEventBusSubscriberExceptionHandler() {
        return new SubscriberExceptionHandler(){
            @Override
            public void handleException(Throwable exception, SubscriberExceptionContext context) {
                if(exception instanceof RecoverableException ||
                   exception instanceof NonRecoverableException) {
                    getTransactionManager().getTransaction().setAbortCause(new IsisApplicationException(exception));
View Full Code Here

TOP

Related Classes of com.google.common.eventbus.SubscriberExceptionHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.