Class SpringWebInitializer

java.lang.Object
uk.ac.diamond.daq.web.SpringWebInitializer

@Configuration public class SpringWebInitializer extends Object
Instantiates a AnnotationConfigWebApplicationContext for GDA Rest services.

The implementation is based on an embedded Jetty server and Spring MVC libraries. When GDA starts Springs also follows scanning a number of annotated classes including this one. On the postConstruct this class instantiates the Jetty server and attach to its life cycle the necessary call to start the AnnotationConfigWebApplicationContext.

The service endpoint URL is the same as for GDA, however the port is specified by a property port (default 8888)

  • Constructor Details

    • SpringWebInitializer

      public SpringWebInitializer()