public abstract class AbstractApplicationBootstrapper extends Object implements ApplicationBootstrapper
ApplicationBootstrapper.Key
Modifier and Type | Field and Description |
---|---|
protected GriffonApplication |
application |
Constructor and Description |
---|
AbstractApplicationBootstrapper(GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
void |
bootstrap() |
protected void |
collectModuleBindings(Collection<Module> modules) |
protected void |
createApplicationModule(List<Module> modules) |
protected Iterable<Binding<?>> |
createBindings() |
protected abstract List<Module> |
loadModules() |
void |
run() |
protected Map<String,Module> |
sortModules(List<Module> moduleInstances) |
protected final GriffonApplication application
public AbstractApplicationBootstrapper(@Nonnull GriffonApplication application)
public void bootstrap() throws Exception
bootstrap
in interface ApplicationBootstrapper
Exception
public void run()
run
in interface ApplicationBootstrapper
protected void collectModuleBindings(@Nonnull Collection<Module> modules)
@Nonnull protected Map<String,Module> sortModules(@Nonnull List<Module> moduleInstances)