[logback-dev] [qos-ch/logback] 18b087: added component lifecycle management to Context/Co...
Carl Harris
ceharris at vt.edu
Tue Apr 23 16:07:52 CEST 2013
Branch: refs/heads/receiverTracking
Home: https://github.com/qos-ch/logback
Commit: 18b0876a020c35bdfe488d152ede36f91e20a45d
https://github.com/qos-ch/logback/commit/18b0876a020c35bdfe488d152ede36f91e20a45d
Author: Carl Harris <ceharris at vt.edu>
Date: 2013-04-23 (Tue, 23 Apr 2013)
Changed paths:
M logback-core/src/main/java/ch/qos/logback/core/Context.java
M logback-core/src/main/java/ch/qos/logback/core/ContextBase.java
M logback-core/src/test/java/ch/qos/logback/core/ContextBaseTest.java
Log Message:
-----------
added component lifecycle management to Context/ContextBase
Context now provides a method that is used to register a component
whose life cycle is to be managed by the context. The implementation
in ContextBase simply manages a collection of LifeCycle components,
starting the component (if necessary) before it is added to the collection,
and stopping each registered component whenever the context is reset.
Commit: 3958413810130942b4a4813087121d81bbca0122
https://github.com/qos-ch/logback/commit/3958413810130942b4a4813087121d81bbca0122
Author: Carl Harris <ceharris at vt.edu>
Date: 2013-04-23 (Tue, 23 Apr 2013)
Changed paths:
M logback-classic/src/main/java/ch/qos/logback/classic/joran/action/ReceiverAction.java
Log Message:
-----------
ReceiverAction now registers receiver with the context
The context will manage the life cycle of the receiver.
Commit: 1074dce4fda39343f9b9555a6005e388e17e7ba8
https://github.com/qos-ch/logback/commit/1074dce4fda39343f9b9555a6005e388e17e7ba8
Author: Carl Harris <ceharris at vt.edu>
Date: 2013-04-23 (Tue, 23 Apr 2013)
Changed paths:
M logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
Log Message:
-----------
added component life cycle management to LogbackValve
This essentially mirrors the implementation in ContextBase.
Commit: b644dbbedb10f5493f01668e3a4d790b0342e2be
https://github.com/qos-ch/logback/commit/b644dbbedb10f5493f01668e3a4d790b0342e2be
Author: Carl Harris <ceharris at vt.edu>
Date: 2013-04-23 (Tue, 23 Apr 2013)
Changed paths:
M logback-access/src/main/java/ch/qos/logback/access/tomcat/LogbackValve.java
M logback-core/src/main/java/ch/qos/logback/core/ContextBase.java
A logback-core/src/main/java/ch/qos/logback/core/LifeCycleManager.java
M logback-core/src/test/java/ch/qos/logback/core/ContextBaseTest.java
A logback-core/src/test/java/ch/qos/logback/core/LifeCycleManagerTest.java
A logback-core/src/test/java/ch/qos/logback/core/MockLifeCycleComponent.java
Log Message:
-----------
extract common life cycle management into LifeCycleManager class
This eliminates duplicate life cycle management code in ContextBase and
LogbackValve.
Compare: https://github.com/qos-ch/logback/compare/720638d9377e...b644dbbedb10
More information about the logback-dev
mailing list