The trick is to get the ApplicationStateManager object, and obtain the state object from it.
If you have an IRequestCycle, you can invoke getInfrastructure().getApplicationStateManager() You can then invoke get() on the ASM, passing the name of the state object. The @InjectState annotation is, effectively, building this code for you. If you are building a HiveMind service, you can inject the ASM using: <set-object name="manager" object="infrastructure:applicationStateManager"/> On 9/20/05, Simon Buettner <[EMAIL PROTECTED]> wrote: > Hi, > i have my Hibernate SessionFactory installed as an application wide > tapestry.state.ApplicationObjects. > How can other Objects that can not use the @Inject Annotations access this > service? > > The Objects are in the application, but they are not direct in a page or > component. > Like a User Manager that is called in Page. I dont want to refer to the > service i injected by a parameter. > > thanx > > -- Howard M. Lewis Ship Independent J2EE / Open-Source Java Consultant Creator, Jakarta Tapestry Creator, Jakarta HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
