On Tue, Mar 27, 2012 at 8:17 AM, fmaylinch <ferranmayli...@gmail.com> wrote:
>> Could you just inject an object with @Autobuild to your service? You'd
> Thank you! Maybe we could use that.
>> If you really needed, you could use static
>> protected or static package private operations to synchronize state.
> I don't understand what you mean here. Can you explain it?

Well, you have multiple instances of the object that you are using a
"private service". If you needed to, the instances could use private
static variables to hold the state. It's typically not a good idea to
make a service stateful, but since you were asking about making a
private service (i.e. a single instance), I assumed you specifically
have a need for creating a singleton.

Kalle

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to