001package com.dev9.mvnwatcher.event; 002 003import com.google.common.eventbus.EventBus; 004import com.google.inject.AbstractModule; 005import com.google.inject.Singleton; 006import com.google.inject.name.Names; 007 008/** 009 * Created by IntelliJ IDEA. 010 * User: bbejeck 011 * Date: 2/25/12 012 * Time: 9:30 PM 013 */ 014 015public class DirectoryEventModule extends AbstractModule { 016 017 @Override 018 protected void configure() { 019 bind(EventBus.class).in(Singleton.class); 020 bind(String.class).annotatedWith(Names.named("START_PATH")).toInstance("test-files"); 021 bind(DirectoryEventWatcher.class).toProvider(DirectoryEventWatcherProvider.class); 022 } 023}