[
https://issues.apache.org/jira/browse/TAPESTRY-1425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship closed TAPESTRY-1425.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.5
Assignee: Howard M. Lewis Ship
> Eager Loaded service (builder) cannot use object injection
> ----------------------------------------------------------
>
> Key: TAPESTRY-1425
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1425
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.4
> Reporter: Ben Sommerville
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.5
>
>
> A service which is EagerLoaded cannot use object injection, it must use
> InjectService.
> If the eager loaded service uses object injection then it will cause an error
> because the alias service has not had its mode set when eager loaded services
> are created.
> e..g This builder method results in an error
> @EagerLoad
> public RegistryShutdownListener buildFileCleanerCleanup( RegistryShutdownHub
> hub)
> When service injection is used it is ok.
> @EagerLoad
> public RegistryShutdownListener
> buildFileCleanerCleanup(@InjectService("RegistryShutdownHub")
> RegistryShutdownHub hub)
> Not sure if this can actually be fixed, or if it just needs to be documented.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]