I think there is a Jira about that. I have a feeling that there are more classes that should use LifeCycle but don’t and do their initialization a little differently, but it would require going and looking through all the classes to determine that.
Ralph On May 19, 2014, at 12:37 PM, Gary Gregory <garydgreg...@gmail.com> wrote: > 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 > JUnit in Action, Second Edition > Spring Batch in Action > Blog: http://garygregory.wordpress.com > Home: http://garygregory.com/ > Tweet! http://twitter.com/GaryGregory