@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
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.