Class VitamApplicationInitializr
- java.lang.Object
-
- fr.gouv.vitam.processing.management.rest.VitamApplicationInitializr
-
public class VitamApplicationInitializr extends java.lang.Object
As restEasy application is lazy load, and some classes are needed for both Jetty server and resteasy configuration This Factory helps to make bridge between jetty server and resteasy configuration.
-
-
Constructor Summary
Constructors Constructor Description VitamApplicationInitializr()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VitamApplicationInitializr
get()
Get an instance of VitamApplicationInitializrCommonBusinessApplication
getCommonBusinessApplication()
Used by @see BusinessApplication to get a registred classesjava.util.Set<java.lang.Object>
getSingletons()
Return the set of registered resourcesVitamServerLifeCycle
getVitamServerLifeCycle()
Return the vitamServerLifeCycle to be added to jetty servervoid
initialize(ServerConfiguration serverConfiguration, WorkerClientFactory workerClientFactory, ProcessManagement processManagement)
void
initialize(java.lang.String configurationFile)
Initialize all resource using the given configuration file
-
-
-
Method Detail
-
get
public static VitamApplicationInitializr get()
Get an instance of VitamApplicationInitializr- Returns:
- VitamApplicationInitializr
-
initialize
public void initialize(java.lang.String configurationFile)
Initialize all resource using the given configuration file- Parameters:
configurationFile
-
-
initialize
public void initialize(ServerConfiguration serverConfiguration, WorkerClientFactory workerClientFactory, ProcessManagement processManagement) throws java.io.IOException
- Throws:
java.io.IOException
-
getSingletons
public java.util.Set<java.lang.Object> getSingletons()
Return the set of registered resources- Returns:
- singletons
-
getVitamServerLifeCycle
public VitamServerLifeCycle getVitamServerLifeCycle()
Return the vitamServerLifeCycle to be added to jetty server- Returns:
- vitamServerLifeCycle
-
getCommonBusinessApplication
public CommonBusinessApplication getCommonBusinessApplication()
Used by @see BusinessApplication to get a registred classes- Returns:
- commonBusinessApplication
-
-