You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Igor Drobiazko (JIRA)" <ji...@apache.org> on 2010/08/09 21:22:16 UTC
[jira] Assigned: (TAP5-1239) @Startup annotation does not appear to
work
[ https://issues.apache.org/jira/browse/TAP5-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Drobiazko reassigned TAP5-1239:
------------------------------------
Assignee: Igor Drobiazko
> @Startup annotation does not appear to work
> -------------------------------------------
>
> Key: TAP5-1239
> URL: https://issues.apache.org/jira/browse/TAP5-1239
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.2.0
> Reporter: Howard M. Lewis Ship
> Assignee: Igor Drobiazko
>
> Attempted to use @Startup as follows:
> @Startup
> private static void preloadPages(Logger logger,
> ComponentClassResolver resolver, ComponentSource source) {
> long start = System.currentTimeMillis();
> for (String name : resolver.getPageNames()) {
> logger.info("Preloading page " + name);
>
> source.getPage(name);
> }
> long end = System.currentTimeMillis();
> logger.info(String.format("Loaded %d pages in %,d ms", resolver
> .getPageNames().size(), end - start));
> }
> However, my startup method was not invoked. I dug around with the debugger, and it appears that the startupDefs property of the ModuleDefImpl is empty.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.