Package org.gwizard.services
Class Services
java.lang.Object
org.gwizard.services.Services
@Singleton
public class Services
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Services() -
Method Summary
Modifier and Type Method Description voidadd(com.google.common.util.concurrent.Service service)Add a service that will be managed on startup.voidadd(com.google.common.util.concurrent.Service.Listener listener)Add a listener that will apply to every service.voidadd(com.google.common.util.concurrent.ServiceManager.Listener listener)Add a listener to the servicemanager.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Services
public Services()
-
-
Method Details
-
add
public void add(com.google.common.util.concurrent.Service service)Add a service that will be managed on startup. Typically you create services by @Injecting the Services object and calling add(this). Must be called before start. -
add
public void add(com.google.common.util.concurrent.Service.Listener listener)Add a listener that will apply to every service. Must be called before start. -
add
public void add(com.google.common.util.concurrent.ServiceManager.Listener listener)Add a listener to the servicemanager. Must be called before start.
-