[
http://jira.magnolia-cms.com/browse/MAGNOLIA-812?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Grégory Joseph closed MAGNOLIA-812.
-----------------------------------
Fix Version/s: (was: Ideas)
Resolution: Outdated
This has been implemented a while ago, as content2bean.
> Easy Configuration
> ------------------
>
> Key: MAGNOLIA-812
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-812
> Project: Magnolia
> Issue Type: Sub-task
> Reporter: Philipp Bärfuss
> Assignee: Philipp Bärfuss
>
> Problem:
> -----------
> A lot of beans are configured by properties stored in a node and the code is
> therfore full of such statements
>
> String value = node.getNodeData('myProperty').getString();
> bean.setMyProperts(value);
> ...
> In the dialogs/controls for example a generic setConfigValue() method is used
> everywhere and nobody knows which kind of properties a control realy has. In
> the future the controls must define there properties (using getter and
> setter).
> Solution:
> -----------
> We shouldn't implement a new persistence framework for JCR (other will do
> that better), but we need an easy to use Util:
> - BeanUtils.setProperties(bean, node)
> - could handle Maps and Collections too
> Hint: Some of the beans will be configured by Spring. We must think about
> keeping the configuration in the config repository using some custom
> BeanDefinition registration. A primar start could be:
> http://static.springframework.org/spring/docs/1.2.x/api/org/springframework/beans/factory/support/DefaultListableBeanFactory.html
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------