On Tue, Mar 27, 2012 at 3:04 AM, fmaylinch <ferranmayli...@gmail.com> wrote: > We've found that some times we would like to define a service that will only > be used from some specific services (for example, services inside the same > package). > Is there any way to do this in Tapestry? This way, the developer won't use > that "private" service from places where it is not supposed to be used.
Could you just inject an object with @Autobuild to your service? You'd get one per service it's used in but the object itself wouldn't be available as a service. If you really needed, you could use static protected or static package private operations to synchronize state. Kalle --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org