You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2007/04/01 16:56:22 UTC
Re: [T5]yet another question on ASO configuration
What does the injection look like? It should look like:
@Inject
private IProvider provider;
On 3/27/07, Arnon Klein <ar...@targetize.com> wrote:
> Hi! Following the user guide about ASO, I've written a method to define
> an ASO creator. After getting it compiled (found the typo...), it still
> doesn't get called at runtime.
> what's missing?
>
>
> public void contributeApplicationStateManager(MappedConfiguration<Class, ApplicationStateContribution> configuration)
> {
> ApplicationStateCreator<IProvider> creator = new ApplicationStateCreator<IProvider>()
> {
> public IProvider create()
> {
> return Application.provider();
> }
> };
>
> configuration.add(IProvider.class, new ApplicationStateContribution("session", creator));
> }
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org