commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Haefemeier (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-331) Missing factory method in XMLBeanDeclaration.getNestedBeanDeclarations
Date Sun, 15 Jun 2008 23:15:46 GMT

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


Mime
View raw message