[
https://issues.apache.org/jira/browse/TAP5-1765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship updated TAP5-1765:
---------------------------------------
Priority: Minor (was: Critical)
The workaround is to inject the ObjectLocator and invoke autobuild() on it
within your build method. I'm adding code to special case @Autobuild to be a
new instance on each method invocation.
> PerThread scope is not honored when service is created using autobuild
> ----------------------------------------------------------------------
>
> Key: TAP5-1765
> URL: https://issues.apache.org/jira/browse/TAP5-1765
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-ioc
> Affects Versions: 5.3
> Reporter: Denis Stepanov
> Priority: Minor
>
> Bug is possible to reproduce by modifying IOC test class PerThreadModule:
> from:
> @Scope(ScopeConstants.PERTHREAD)
> public StringHolder buildStringHolder()
> {
> return new StringHolderImpl();
> }
> to:
> @Scope(ScopeConstants.PERTHREAD)
> public StringHolder buildStringHolder(@Autobuild StringHolderImpl impl)
> {
> return impl;
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira