You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/03/05 23:29:33 UTC

[jira] [Commented] (TAMAYA-253) Make raw evaluation of policy pluggable.

    [ https://issues.apache.org/jira/browse/TAMAYA-253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15896597#comment-15896597 ] 

ASF subversion and git services commented on TAMAYA-253:
--------------------------------------------------------

Commit ed2269552a61141ca36cb0b6cc2295d6e51444b3 in incubator-tamaya-extensions's branch refs/heads/master from [~anatole]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-tamaya-extensions.git;h=ed22695 ]

TAMAYA-253: Added replacement policy for raw evaluation.


> Make raw evaluation of policy pluggable.
> ----------------------------------------
>
>                 Key: TAMAYA-253
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-253
>             Project: Tamaya
>          Issue Type: Improvement
>          Components: Core, tamaya-spisupport
>    Affects Versions: 0.2-incubating
>            Reporter: Anatole Tresch
>            Assignee: Anatole Tresch
>              Labels: Raw-Property-Evaluation
>             Fix For: 0.3-incubating
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Make the evaluation part for the raw properties (before they enter the filter chain) pluggable. The interface proposed (including a default implementation in core/spi-support):
> {noformat}
> /**
>  * Component SPI which encapsulates the evaluation of a single or full <b>raw</b>value
>  * for a {@link ConfigurationContext}.
>  */
> public interface ConfigValueEvaluator {
>     /**
>      * Evaluates single value using a {@link ConfigurationContext}.
>      * @param key the config key, not null.
>      * @param context the context, not null.
>      * @return the value, or null.
>      */
>     PropertyValue evaluteRawValue(String key, ConfigurationContext context);
>     /**
>      * Evaluates all property values from a {@link ConfigurationContext}.
>      * @param context the context, not null.
>      * @return the value, or null.
>      */
>     Iterable<PropertyValue> evaluateRawValues(ConfigurationContext context);
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)