[
https://issues.apache.org/jira/browse/TAPESTRY-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Marinkovic closed TAPESTRY-2030.
-----------------------------------------
Resolution: Fixed
i consider this jira closed through the advent of the
EnvironmentalShadowBuilder.
> creating a service for contribution services to the Environment service
> -----------------------------------------------------------------------
>
> Key: TAPESTRY-2030
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2030
> Project: Tapestry
> Issue Type: New Feature
> Affects Versions: 5.0.8
> Reporter: Kristian Marinkovic
> Priority: Trivial
>
> each time a new (global for one page rendering) service is needed i have to
> implement MarkupRendererFilter and contributed it to the MarkupRenderer
> service. it would be more convenient to have a service that adds contributed
> services directly to the environment.
> now:
> public void
> contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter>
> configuration,
> final MenuManager menuManager, final Environment environment) {
> configuration.add("menuManager", new MarkupRendererFilter() {
> public void renderMarkup(MarkupWriter writer, MarkupRenderer
> renderer) {
>
> environment.push(MenuManager.class, menuManager);
>
> renderer.renderMarkup(writer);
>
> environment.pop(MenuManager.class);
>
> }}, "after:heartbeat");
> }
> more convenient:
> contributeEnvironment(Configuration conf,MenuManager menuManager) {
> conf.add(MenuManager.class,menuManager);
> }
--
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]