com.twitter.common.application
Interface Application

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractApplication, AngryBirdZooKeeperMain

public interface Application
extends Runnable

An application that supports a limited lifecycle and optional binding of guice modules.


Method Summary
 Iterable<? extends Module> getModules()
          Returns binding modules for the application.
 Iterable<? extends Module> getOverridingModules()
          Returns an iterable containing modules that should override bindings made in the rest of the application.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getModules

Iterable<? extends Module> getModules()
Returns binding modules for the application.

Returns:
Application binding modules.

getOverridingModules

Iterable<? extends Module> getOverridingModules()
Returns an iterable containing modules that should override bindings made in the rest of the application. This is useful for providing custom bindings in place of system defaults.

Returns:
Application override binding modules.