tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Sommerville (JIRA)" <...@tapestry.apache.org>
Subject [jira] Created: (TAPESTRY-1425) Eager Loaded service (builder) cannot use object injection
Date Mon, 23 Apr 2007 00:24:15 GMT
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
            Priority: Minor


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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message