[qos-ch/logback] 18b087: added component lifecycle management to Context/Co...

Branch: refs/heads/master Home: https://github.com/qos-ch/logback Commit: 18b0876a020c35bdfe488d152ede36f91e20a45d https://github.com/qos-ch/logback/commit/18b0876a020c35bdfe488d152ede36f91e2... Author: Carl Harris <ceharris@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/3958413810130942b4a4813087121d81bbc... Author: Carl Harris <ceharris@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/1074dce4fda39343f9b9555a6005e388e17... Author: Carl Harris <ceharris@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/b644dbbedb10f5493f01668e3a4d790b034... Author: Carl Harris <ceharris@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. Commit: fe7fc952484e37eb5d226273eb779c53e40ae8f7 https://github.com/qos-ch/logback/commit/fe7fc952484e37eb5d226273eb779c53e40... Author: Carl Harris <ceharris@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-classic/src/main/java/ch/qos/logback/classic/joran/action/ReceiverAction.java 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/main/java/ch/qos/logback/core/LifeCycleManager.java M logback-core/src/test/java/ch/qos/logback/core/ContextBaseTest.java M logback-core/src/test/java/ch/qos/logback/core/LifeCycleManagerTest.java Log Message: ----------- renamed Context life cycle management method as "register" Commit: a4fa25cdd79b2007a7637814e9bc26f7da556936 https://github.com/qos-ch/logback/commit/a4fa25cdd79b2007a7637814e9bc26f7da5... Author: Carl Harris <ceharris@vt.edu> Date: 2013-04-23 (Tue, 23 Apr 2013) Changed paths: M logback-core/src/main/java/ch/qos/logback/core/LifeCycleManager.java M logback-core/src/test/java/ch/qos/logback/core/LifeCycleManagerTest.java Log Message: ----------- don't start component in LifeCycleManager.register Commit: 2e3aacd2038812846a91243da758b75639761f7c https://github.com/qos-ch/logback/commit/2e3aacd2038812846a91243da758b756397... Author: Carl Harris <ceharris@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-classic/src/main/java/ch/qos/logback/classic/joran/action/ReceiverAction.java M logback-core/src/main/java/ch/qos/logback/core/Context.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: ----------- Merge pull request #114 from qos-ch/receiverTracking Receiver tracking support merged. Compare: https://github.com/qos-ch/logback/compare/05065eb4f76a...2e3aacd20388
participants (1)
-
Carl Harris