What does the injection look like?  It should look like:

@Inject
private IProvider provider;



On 3/27/07, Arnon Klein <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to