You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "Anatole Tresch (JIRA)" <ji...@apache.org> on 2016/02/02 02:17:39 UTC

[jira] [Created] (TAMAYA-137) Enhance filter API adding a FilterContext

Anatole Tresch created TAMAYA-137:
-------------------------------------

             Summary: Enhance filter API adding a FilterContext
                 Key: TAMAYA-137
                 URL: https://issues.apache.org/jira/browse/TAMAYA-137
             Project: Tamaya
          Issue Type: Improvement
          Components: API
    Affects Versions: 0.1-incubating
            Reporter: Anatole Tresch
            Assignee: Anatole Tresch
             Fix For: 0.2-incubating


As discussed oin the mailing list there are use cases where a {{PropertyFilter}}, similar to {{PropertyConverter}} requires additional (meta)data to be available, so it can implement the correct filtering. This can be solved by introducing a {{FilterContext}}. As a result the SPI is changed from

{noformat}
public String filter(String key, String valueToBeFiltered);
{noformat}

to 

{noformat}
public String filter(String valueToBeFiltered, FilterContext context);
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)