[
https://issues.apache.org/jira/browse/TRINIDAD-2439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879241#comment-13879241
]
David Schneider commented on TRINIDAD-2439:
-------------------------------------------
The attached patch defines a new ConfigPropertiesService API along with a
PropertyValueProvider SPI. The SPI allows an application to register its own
implementation to supply configuration values from whatever underlaying system
it wishes (e.g. a XML file, a database table, etc.). The patch also includes
three PropertyValueProvider implementations:
- An implementation that retrieves values from the servlet context
initialization parameters.
- A default value provider for capturing hard coded default values.
- A test value provider that allows changing property values on the fly for
testing purposes.
> Plugable configuration parameter provider
> -----------------------------------------
>
> Key: TRINIDAD-2439
> URL: https://issues.apache.org/jira/browse/TRINIDAD-2439
> Project: MyFaces Trinidad
> Issue Type: Improvement
> Components: Infrastructure
> Affects Versions: 2.1.0-core
> Environment: All
> Reporter: David Schneider
> Assignee: Scott O'Bryan
> Attachments: trinidad-config.diff
>
>
> The Trinidad framework currently uses servlet context initialization
> parameter values specified in the web.xml file for supplying configuration
> parameters to the runtime. In some applications and environments it is
> desirable to be able to supply configuration parameters from other sources
> (e.g a database table, MBean, etc.). This enhancement proposes to create an
> interface abstraction for fetching configuration parameter values along with
> a plugable framework for configuration value providers. This will allow
> applications to plug in their own value providers that fetch values from
> different sources. A default value provider that fetches servlet context
> initialization parameter values that preserves existing behavior will also be
> provided.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)