[ 
https://issues.apache.org/jira/browse/BEANUTILS-286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550751
 ] 

Stuart Schmukler commented on BEANUTILS-286:
--------------------------------------------

I am not sure why we need a Facade to prevent access to the Converter's 
configuration.

This change brakes the following code:
                        CalendarConverter  calConverter = (CalendarConverter) 
converterUtils.lookup(java.util.Calendar.class);
                        calConverter.setPattern("yyyy.MM.dd G 'at' HH:mm:ss z");
                        converterUtils.register(calConverter, 
java.util.GregorianCalendar.class);

And prohibits me from 'inheriting' Converter configurations from other parts of 
my system.

Why was this done?

> New Facade converter implementation - hide non-Converter public APIs
> --------------------------------------------------------------------
>
>                 Key: BEANUTILS-286
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-286
>             Project: Commons BeanUtils
>          Issue Type: New Feature
>          Components: ConvertUtils & Converters
>    Affects Versions: 1.7.0
>            Reporter: Niall Pemberton
>            Assignee: Niall Pemberton
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> Provide a "facade" Converter implementation that delegates to a specified 
> Converter, but hides any public API other than that defined in the Converter 
> interface.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to