Container Extension
Summary
Service container extension, useful for loading custom contents.
Extension Interface
org.apache.dubbo.container.Container
Extension Configuration
java org.apache.dubbo.container.Main spring jetty log4j
Existing Extensions
org.apache.dubbo.container.spring.SpringContainer
org.apache.dubbo.container.spring.JettyContainer
org.apache.dubbo.container.spring.Log4jContainer
Extension Guide
Directory layout:
src
|-main
|-java
|-com
|-xxx
|-XxxContainer.java (Container implementation)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.container.Container (plain text file with the content: xxx=com.xxx.XxxContainer)
XxxContainer.java:
package com.xxx;
org.apache.dubbo.container.Container;
public class XxxContainer implements Container {
public Status start() {
// ...
}
public Status stop() {
// ...
}
}
META-INF/dubbo/org.apache.dubbo.container.Container:
xxx=com.xxx.XxxContainer
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified January 22, 2021: Merge branch 'master' of https://github.com/apache/dubbo-website (f48eac9)