freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dekany (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FREEMARKER-54) FM3 freemareker-spring module, basic functionality
Date Sun, 18 Jun 2017 14:46:00 GMT

    [ https://issues.apache.org/jira/browse/FREEMARKER-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16053218#comment-16053218
] 

Daniel Dekany commented on FREEMARKER-54:
-----------------------------------------

As of {{ConfigurationFactoryBean.setSettings(Map)}}, {{ExtendedBuilder}} already has a very
similar method inherited: {{org.apache.freemarker.core.MutableProcessingConfiguration.setSettings(Properties)}}.
If a {{Map}} parameter is better than a {{Properties}}, then I think you should change {{MutableProcessingConfiguration.setSettings}}
(with considering that Bean property setters can't be overloaded, and {{Properties}} extends
{{Map<Object,Object>}}, not {{Map<String,String>}}... so it will be a bit ugly,
and {{_CollectionUtil.safeCastMap}} will be needed).

> FM3 freemareker-spring module, basic functionality
> --------------------------------------------------
>
>                 Key: FREEMARKER-54
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-54
>             Project: Apache Freemarker
>          Issue Type: Task
>    Affects Versions: 3.0.0
>            Reporter: Daniel Dekany
>
> Create the Gradle module. Basic non-Web functionality. This certainly means:
> * Creating a FactoryBean by extending {{Configuration.ExtendableBuilder}} which has defaults
that are practical for Spring.
> * Creating a {{SpringResourceTemplateLoader}} which relies on Spring's {{Resource}} abstraction
> It's also an important goal to polish the {{freemarker-core}} configuration and template
loader API-s, and change them if that's needed for smoother Spring integration.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message