[
https://issues.apache.org/jira/browse/CONFIGURATION-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605168#action_12605168
]
Frank Haefemeier commented on CONFIGURATION-331:
------------------------------------------------
IMHO more convenient for the method would be
{noformat}
/**
* Creates a nested <code>BeanDeclaration</code> for a child node of the
current configuration node.
* @param node the affected child node
* @return the <code>BeanDeclaration</code> for this child node
*/
protected BeanDeclaration createBeanDeclaration(ConfigurationNode node);
{noformat}
I think, this is what you thought as you wrote it, right? Your proposal looks
like a constructor...
Additional the method {{getNestedBeanDeclaration}} has to be changed to use
this new factory method.
> Missing factory method in XMLBeanDeclaration.getNestedBeanDeclarations
> -----------------------------------------------------------------------
>
> Key: CONFIGURATION-331
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-331
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Frank Haefemeier
>
> I create a new BeanDeclaration class on base of XMLBeanDeclaration to extend
> the behaviour to fill up bean properties with pure XML text nodes. But the
> problem was, that the method getNestedBeanDeclaration create for all nested
> child new XMLBeanDeclarations and there
> is no way to get my own class. I have to implement the whole method
> getNestedBeanDeclaration as a copy from the parent class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.