Skip to content

Conversation

nerdynick
Copy link
Member

This PR adds a new Configuration called PrefixConfiguration. It is similar to SubsetConfiguration, and barrows heavily from it. The difference is that it allows a user to apply a prefix to a given Configuration. It does this in the smilier view based manor that SubsetConfiguration does.

Copy link
Member

@garydgregory garydgregory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before I even ask you to write docs for the site's user guide [1], I think I'd like to see in this PR's description a better explanation of what need this PR fills, what problem does it solve, which you can then expand upon for the docs.

TY!

[1] https://commons.apache.org/proper/commons-configuration/userguide/user_guide.html


import org.apache.commons.configuration2.convert.ListDelimiterHandler;

public class PrefixConfiguration extends AbstractConfiguration {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing class comment.

/**
* Add a configuration with a prefix.
*
* @param config the configuration to add
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Javadoc @since tags on new methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants