public abstract class AbstractApplicationBootstrapper extends java.lang.Object implements ApplicationBootstrapper
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(java.util.Collection<Module> modules) |
protected void |
createApplicationModule(java.util.List<Module> modules) |
protected void |
createArtifactsModule(java.util.List<Module> modules) |
protected java.lang.Iterable<Binding<?>> |
createBindings() |
protected abstract java.util.List<Module> |
loadModules() |
void |
run() |
protected java.util.Map<java.lang.String,Module> |
sortModules(java.util.List<Module> moduleInstances) |
protected final GriffonApplication application
public AbstractApplicationBootstrapper(@Nonnull GriffonApplication application)
public void bootstrap() throws java.lang.Exception
bootstrap
in interface ApplicationBootstrapper
java.lang.Exception
public void run()
run
in interface ApplicationBootstrapper
@Nonnull protected java.lang.Iterable<Binding<?>> createBindings()
protected void createArtifactsModule(@Nonnull java.util.List<Module> modules)
protected void createApplicationModule(@Nonnull java.util.List<Module> modules)
protected void collectModuleBindings(@Nonnull java.util.Collection<Module> modules)
@Nonnull protected java.util.Map<java.lang.String,Module> sortModules(@Nonnull java.util.List<Module> moduleInstances)
@Nonnull protected abstract java.util.List<Module> loadModules()