You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Peter Beshai (JIRA)" <de...@tapestry.apache.org> on 2008/03/27 15:45:24 UTC

[jira] Created: (TAPESTRY-2301) Improve clarity of Mapped Configuration section (Tapestry-IoC)

Improve clarity of Mapped Configuration section (Tapestry-IoC)
--------------------------------------------------------------

                 Key: TAPESTRY-2301
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2301
             Project: Tapestry
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 5.0
            Reporter: Peter Beshai
            Priority: Minor


At the bottom of http://tapestry.apache.org/tapestry5/tapestry-ioc/cookbook/servconf.html (Mapped Configurations), you mention:

Tapestry IoC's symbols mechanism allows configuration values to be defined and perhaps overridden, then provided to services via injection, using the Value annotation.


I think it would be more clear if you added that you may also need to use the Inject annotation, and maybe if you provided a simple example, like:

public class Start
{
	@Inject
	@Value("${tapestry.supported-locales}")
	private String _supportedLocales;

        public String getSupportedLocales()
	{
		return _supportedLocales;
	}
}



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


[jira] Assigned: (TAP5-188) Improve clarity of Mapped Configuration section (Tapestry-IoC)

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-188:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> Improve clarity of Mapped Configuration section (Tapestry-IoC)
> --------------------------------------------------------------
>
>                 Key: TAP5-188
>                 URL: https://issues.apache.org/jira/browse/TAP5-188
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Peter Beshai
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> At the bottom of http://tapestry.apache.org/tapestry5/tapestry-ioc/cookbook/servconf.html (Mapped Configurations), you mention:
> Tapestry IoC's symbols mechanism allows configuration values to be defined and perhaps overridden, then provided to services via injection, using the Value annotation.
> I think it would be more clear if you added that you may also need to use the Inject annotation, and maybe if you provided a simple example, like:
> public class Start
> {
> 	@Inject
> 	@Value("${tapestry.supported-locales}")
> 	private String _supportedLocales;
>         public String getSupportedLocales()
> 	{
> 		return _supportedLocales;
> 	}
> }

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


[jira] Closed: (TAP5-188) Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-188.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.16

> Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-188
>                 URL: https://issues.apache.org/jira/browse/TAP5-188
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Peter Beshai
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>             Fix For: 5.0.16
>
>
> At the bottom of http://tapestry.apache.org/tapestry5/tapestry-ioc/cookbook/servconf.html (Mapped Configurations), you mention:
> Tapestry IoC's symbols mechanism allows configuration values to be defined and perhaps overridden, then provided to services via injection, using the Value annotation.
> I think it would be more clear if you added that you may also need to use the Inject annotation, and maybe if you provided a simple example, like:
> public class Start
> {
> 	@Inject
> 	@Value("${tapestry.supported-locales}")
> 	private String _supportedLocales;
>         public String getSupportedLocales()
> 	{
> 		return _supportedLocales;
> 	}
> }

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


[jira] Updated: (TAP5-188) Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)

Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TAP5-188?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-188:
--------------------------------------

    Summary: Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)  (was: Improve clarity of Mapped Configuration section (Tapestry-IoC))

> Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-188
>                 URL: https://issues.apache.org/jira/browse/TAP5-188
>             Project: Tapestry 5
>          Issue Type: Improvement
>    Affects Versions: 5.0.15
>            Reporter: Peter Beshai
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>
> At the bottom of http://tapestry.apache.org/tapestry5/tapestry-ioc/cookbook/servconf.html (Mapped Configurations), you mention:
> Tapestry IoC's symbols mechanism allows configuration values to be defined and perhaps overridden, then provided to services via injection, using the Value annotation.
> I think it would be more clear if you added that you may also need to use the Inject annotation, and maybe if you provided a simple example, like:
> public class Start
> {
> 	@Inject
> 	@Value("${tapestry.supported-locales}")
> 	private String _supportedLocales;
>         public String getSupportedLocales()
> 	{
> 		return _supportedLocales;
> 	}
> }

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