Let's start with a specific case: AbstractAppender clearly has life cycle
features (start/stop) but it subclasses AbstractFilterable.

Would it be correct for AbstractFilterable to be a life cycle and subclass
AbstractLifeCycle?

Gary


On Mon, May 19, 2014 at 9:29 PM, Ralph Goers <ralph.go...@dslextreme.com>wrote:

> 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<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
>
>
>


-- 
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