tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Drobiazko (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TAP5-1239) @Startup annotation does not appear to work
Date Mon, 30 May 2011 22:24:47 GMT

     [ https://issues.apache.org/jira/browse/TAP5-1239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Igor Drobiazko closed TAP5-1239.
--------------------------------


> @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
>             Fix For: 5.2.1
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message