All:

I abstracted out the life cycle management code out of LoggerContext into
it's own abstract class and reused it in (now) subclasses that provided the
same kind of functionality (please see revision 1596001.)

The next question is: The AbstractAppender extends AbstractFilterable and
also has life cycle management features (isStarted()/isStopped()). If
AbstractFilterable would extend AbstractLifeCycle, then more classes would
carry the state ivar. I did not do that because it did not feel right
without more consideration.

I know someone else had mentioned life cycle work as a to-do so here's a
start in a manner that is reused now in a few different places.

Thoughts?

-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to