Package org.wso2.msf4j.spring
Class SpringMicroservicesRunner
- java.lang.Object
-
- org.wso2.msf4j.MicroservicesRunner
-
- org.wso2.msf4j.spring.SpringMicroservicesRunner
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware
@Component public class SpringMicroservicesRunner extends org.wso2.msf4j.MicroservicesRunner implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBeanThis runner initializes the microservices runtime based on provided Spring configuration, deploys microservices, service interceptors and starts the relevant transports.- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description SpringMicroservicesRunner()SpringMicroservicesRunner(int... ports)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected voidconfigureTransport()protected voidconfigureTransport(java.util.Collection<org.wso2.transport.http.netty.contract.config.ListenerConfiguration> listeners, java.util.Collection<TransportConfig> transportConfigs)voidinit()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)-
Methods inherited from class org.wso2.msf4j.MicroservicesRunner
addExceptionMapper, addGlobalRequestInterceptor, addGlobalResponseInterceptor, addInterceptor, configureTransport, configureTransport, deploy, deploy, deployWebSocketEndpoint, getMsRegistry, handleServiceLifecycleMethods, setSessionManager, start, stop
-
-
-
-
Method Detail
-
init
public void init()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
configureTransport
protected void configureTransport()
- Overrides:
configureTransportin classorg.wso2.msf4j.MicroservicesRunner
-
configureTransport
protected void configureTransport(java.util.Collection<org.wso2.transport.http.netty.contract.config.ListenerConfiguration> listeners, java.util.Collection<TransportConfig> transportConfigs)
-
-