I'd be surprised of @Contribute didn't work, it's tapestry-ioc which
does the processing and it's very much an integral part of tapestry.

You can try "public static void
contributeServiceOverride(MappedConfiguration<Class,Object>
configuration)", but I'm not sure that will make the difference.


On Thu, Aug 25, 2011 at 10:30 AM, TG <tapestry...@hotmail.com> wrote:
> Here you go -
>
>  <filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
>  </filter>
>  <filter-mapping>
>  <filter-name>app</filter-name>
>  <url-pattern>/*</url-pattern>
>  </filter-mapping>
>
> Also I put a system out in the method like this -
>
>        @Contribute(ServiceOverride.class)
>        public static void
> setupApplicationServiceOverrides(MappedConfiguration<Class,Object>
> configuration) {
>                System.out.println("AppModule 
> setupApplicationServiceOverrides() ...");
>        configuration.add(PeriodicExecutor.class, new PeriodicExecutor() {
>            public PeriodicJob addJob(Schedule schedule, String name,
> Runnable job) {
>                        System.out.println("AppModule 
> createNOOPPeriodicExecutor()
> returning null.");
>                return null;
>            }
>        });
>    }
>
> Maybe I need something else to get it to call? @Contribute annotation, what
> does it need? If AOP, forget about it, it is GAEJ and would not work
> properly :) Indeed a very basic (limited by lots of constraints for
> scalabilty sake) platform :)
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4735337.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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to