You can use constructor injection.

Make a constructor for the object, and have an argument for whichever
service you want, and tapestry will pass it in when it constructs the
object. It will automatically call the constructor with the most arguments.
This is all assuming that you're going to be creating this object as a
service. If not, then you can jsut @Inject (or use constructor injection) on
the service that creates this object.



On Wed, Jan 5, 2011 at 2:06 PM, hese <1024h...@gmail.com> wrote:

>
> oopss...just saw that ObjectLocator is an interface.  Any inputs?
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/how-to-get-a-handle-to-a-service-from-a-POJO-class-tp3329328p3329343.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to