java.lang.Object
net.odoframework.container.ModuleBuilder
net.odoframework.container.Application
- All Implemented Interfaces:
BiFunction<Container,Properties,Container>,Module
public abstract class Application extends ModuleBuilder
This class creates a root container for an ODO application. There should at least be one instance of an ApplicationBuilder as a module via the
ServiceLoader-
Constructor Summary
Constructors Constructor Description Application() -
Method Summary
Modifier and Type Method Description protected voidafterContainerPopulated(Container container)Can be used to implement custom logic after theModuleBuilder.build()method is invokedprotected voidbeforeContainerPopulated(Container container)Can be used to implement custom logic before theModuleBuilder.build()method is invokedstatic ApplicationgetLoadedApplication()protected PropertiesloadConfiguration()protected voidloadManualModules(Container container)protected voidloadModule(Container container, Module module)protected voidpostContainerCreated(Container container)Methods inherited from class net.odoframework.container.ModuleBuilder
addStartupBean, addStartupBean, apply, build, getContainer, getDependencies, getStartupBeans, provides, provides, register, registerEventHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThenMethods inherited from interface net.odoframework.container.Module
getPrecedence
-
Constructor Details
-
Application
public Application()
-
-
Method Details
-
getLoadedApplication
-
loadConfiguration
-
loadManualModules
-
loadModule
-
beforeContainerPopulated
Description copied from class:ModuleBuilderCan be used to implement custom logic before theModuleBuilder.build()method is invoked- Overrides:
beforeContainerPopulatedin classModuleBuilder- Parameters:
container- the container which will be populated withBeanDefinitioninstances
-
afterContainerPopulated
Description copied from class:ModuleBuilderCan be used to implement custom logic after theModuleBuilder.build()method is invoked- Overrides:
afterContainerPopulatedin classModuleBuilder- Parameters:
container- the container which will be populated withBeanDefinitioninstances
-
postContainerCreated
-