Package eu.domibus.connector.client.war
Class DomibusConnectorClientWAR
- java.lang.Object
-
- org.springframework.boot.web.servlet.support.SpringBootServletInitializer
-
- eu.domibus.connector.client.war.DomibusConnectorClientWAR
-
- All Implemented Interfaces:
org.springframework.web.WebApplicationInitializer
@SpringBootApplication(scanBasePackages="eu.domibus.connector.client") @EnableScheduling @EnableTransactionManagement @PropertySource("classpath:/default-connector-client.properties") public class DomibusConnectorClientWAR extends org.springframework.boot.web.servlet.support.SpringBootServletInitializer
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECTOR_CONFIG_FILE_PROPERTY_NAME
static String
DEFAULT_SPRING_CONFIG_LOCATION
static String
DEFAULT_SPRING_CONFIG_NAME
static String
SPRING_CONFIG_LOCATION_PROPERTY_NAME
static String
SPRING_CONFIG_NAME_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description DomibusConnectorClientWAR()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.boot.builder.SpringApplicationBuilder
configure(org.springframework.boot.builder.SpringApplicationBuilder application)
org.springframework.boot.builder.SpringApplicationBuilder
configureApplicationContext(org.springframework.boot.builder.SpringApplicationBuilder application)
static String
getConnectorConfigFileSystemProperty()
static Properties
loadConnectorConfigProperties(String connectorConfigFile)
void
onStartup(javax.servlet.ServletContext servletContext)
Will only be called if the Application is deployed within an web application server adds to the boostrap and spring config location search path a web application context dependent search path: app deployed under context /connector will look also for config under [workingpath]/config/[webcontext]/, [workingpath]/conf/[webcontext]/
-
-
-
Field Detail
-
SPRING_CONFIG_LOCATION_PROPERTY_NAME
public static final String SPRING_CONFIG_LOCATION_PROPERTY_NAME
- See Also:
- Constant Field Values
-
SPRING_CONFIG_NAME_PROPERTY_NAME
public static final String SPRING_CONFIG_NAME_PROPERTY_NAME
- See Also:
- Constant Field Values
-
CONNECTOR_CONFIG_FILE_PROPERTY_NAME
public static final String CONNECTOR_CONFIG_FILE_PROPERTY_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SPRING_CONFIG_NAME
public static final String DEFAULT_SPRING_CONFIG_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SPRING_CONFIG_LOCATION
public static final String DEFAULT_SPRING_CONFIG_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
configureApplicationContext
public org.springframework.boot.builder.SpringApplicationBuilder configureApplicationContext(org.springframework.boot.builder.SpringApplicationBuilder application)
-
getConnectorConfigFileSystemProperty
@Nullable public static String getConnectorConfigFileSystemProperty()
-
configure
protected org.springframework.boot.builder.SpringApplicationBuilder configure(org.springframework.boot.builder.SpringApplicationBuilder application)
- Overrides:
configure
in classorg.springframework.boot.web.servlet.support.SpringBootServletInitializer
-
loadConnectorConfigProperties
public static Properties loadConnectorConfigProperties(String connectorConfigFile)
-
onStartup
public void onStartup(javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException
Will only be called if the Application is deployed within an web application server adds to the boostrap and spring config location search path a web application context dependent search path: app deployed under context /connector will look also for config under [workingpath]/config/[webcontext]/, [workingpath]/conf/[webcontext]/- Specified by:
onStartup
in interfaceorg.springframework.web.WebApplicationInitializer
- Overrides:
onStartup
in classorg.springframework.boot.web.servlet.support.SpringBootServletInitializer
- Parameters:
servletContext
- the servlet context- Throws:
javax.servlet.ServletException
- in case of an error @seeSpringBootServletInitializer.onStartup(ServletContext)
-
-