Package org.chenile.core.init
Class BaseInitializer<T>
java.lang.Object
org.chenile.core.init.BaseInitializer<T>
- Type Parameters:
T
- - the class that will be initialized.
- All Implemented Interfaces:
InitializingBean
- Direct Known Subclasses:
CacheInitializer
,ChenileEventInitializer
,ChenileSchedulerInitializer
,ChenileTrajectoryInitializer
Extend this to initialize anything like event definitions etc. (not only services)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getExtensionMap
(String extensionName) protected void
init()
private T
populateEventFromInputStream
(InputStream inputStream) private T
populateModelFromResource
(Resource chenileResource) protected abstract void
registerModelInChenile
(T resourceModel) protected void
registerResource
(Resource resource)
-
Field Details
-
chenileJsonResources
-
chenileConfiguration
-
-
Constructor Details
-
BaseInitializer
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
init
protected void init() -
registerResource
-
registerModelInChenile
-
populateModelFromResource
-
populateEventFromInputStream
- Throws:
Exception
-
getModelType
-
getExtensionMap
-