Class ModelPreloader<T extends org.springframework.boot.context.event.SpringApplicationEvent>
java.lang.Object
com.blueriq.web.startup.preloadmodel.ModelPreloader<T>
- Type Parameters:
T
-SpringApplicationEvent
the model (pre)loader
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<T>
- Direct Known Subclasses:
WaitForModelPreloader
,WhenReadyModelPreloader
public abstract class ModelPreloader<T extends org.springframework.boot.context.event.SpringApplicationEvent>
extends Object
implements org.springframework.context.ApplicationListener<T>
Abstract ModelPreloader responsible to load applications in memory to make sure a end-user does not have to wait for
the model to be loaded as it would be loaded before the request.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelPreloader
(com.aquima.interactions.portal.IPortalEngine portalEngine, ModelPreloadProperties modelPreloadProperties) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
onApplicationEvent
-
Field Details
-
modelPreloadProperties
-
-
Constructor Details
-
ModelPreloader
public ModelPreloader(com.aquima.interactions.portal.IPortalEngine portalEngine, ModelPreloadProperties modelPreloadProperties)
-
-
Method Details
-
preloadModels
protected void preloadModels()
-