org.jbr.commons.service.ServiceUtilsSupport.java Source code

Java tutorial

Introduction

Here is the source code for org.jbr.commons.service.ServiceUtilsSupport.java

Source

/**
 * Copyright (C) - 2013 jbrule
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <http://www.gnu.org/licenses/>
 */
package org.jbr.commons.service;

import org.jbr.commons.service.event.ServiceEvent;

import com.google.common.eventbus.EventBus;

/**
 * TODO - Type header
 * 
 * @author <a href="mailto:brulejr@gmail.com">Jon Brule</a>
 */
public class ServiceUtilsSupport {

    protected void postEvent(final ServiceEvent event, final EventBus eventBus) {
        if (eventBus != null) {
            eventBus.post(event);
        }

    }

}