Container Extension
Container Extension
Extension Description
Service container extension for customizing loading content.
Extension Interface
org.apache.dubbo.container.Container
Extension Configuration
java org.apache.dubbo.container.Main spring jetty log4j
Known Extensions
org.apache.dubbo.container.spring.SpringContainer
org.apache.dubbo.container.spring.JettyContainer
org.apache.dubbo.container.spring.Log4jContainer
Extension Example
Maven project structure:
src
|-main
|-java
|-com
|-xxx
|-XxxContainer.java (implements Container interface)
|-resources
|-META-INF
|-dubbo
|-org.apache.dubbo.container.Container (plain text file, 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?
Yes No
Last modified September 30, 2024: Update & Translate Overview Docs (#3040) (d37ebceaea7)