parent
b2901f5cb4
commit
e9e176b1f1
|
|
@ -25,12 +25,12 @@ import org.apache.dubbo.common.extension.SPI;
|
||||||
public interface Container {
|
public interface Container {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start.
|
* start method to load the container.
|
||||||
*/
|
*/
|
||||||
void start();
|
void start();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop.
|
* stop method to unload the container.
|
||||||
*/
|
*/
|
||||||
void stop();
|
void stop();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,8 @@ import java.util.concurrent.locks.ReentrantLock;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main. (API, Static, ThreadSafe)
|
* Main. (API, Static, ThreadSafe)
|
||||||
|
*
|
||||||
|
* This class is entry point loading containers.
|
||||||
*/
|
*/
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ import java.util.Properties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log4jContainer. (SPI, Singleton, ThreadSafe)
|
* Log4jContainer. (SPI, Singleton, ThreadSafe)
|
||||||
|
*
|
||||||
|
* The container class implementation for Log4j
|
||||||
*/
|
*/
|
||||||
public class Log4jContainer implements Container {
|
public class Log4jContainer implements Container {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LogbackContainer. (SPI, Singleton, ThreadSafe)
|
* LogbackContainer. (SPI, Singleton, ThreadSafe)
|
||||||
|
*
|
||||||
|
* The container class implementation for Logback
|
||||||
*/
|
*/
|
||||||
public class LogbackContainer implements Container {
|
public class LogbackContainer implements Container {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,8 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SpringContainer. (SPI, Singleton, ThreadSafe)
|
* SpringContainer. (SPI, Singleton, ThreadSafe)
|
||||||
|
*
|
||||||
|
* The container class implementation for Spring
|
||||||
*/
|
*/
|
||||||
public class SpringContainer implements Container {
|
public class SpringContainer implements Container {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue