IoC Question

Tyler Wilcock <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <CAOZwnFa06PH1G=hP-dYXSk1S_hFRY9HHXk5ksCBux74H0t43yg@mail.gmail.com>
Question about Tapestry's IoC system.  Let's pretend I register a service
called EventTracker.java.  EventTracker has a private List field containing
a list of Events, a method to add those events, and a method to retrieve
those events.  Now let's say I have another class that @Inject's that
EventTracker service and records a bunch of events.

If I @Inject the EventTracker service into yet another class, can I read
those events that the previous class added?  Or will it be an empty slate?
Generally, my question is this: do services save their state in between
injections in different classes?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.