You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/05/07 14:40:49 UTC

[jira] [Commented] (WICKET-4530) Final methods on ResourceNameIterator prevent full customization of IResourceStreamLocator

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

Martin Grigorov commented on WICKET-4530:
-----------------------------------------

What is your use case ?
Why do you want different behavior from #getLocale() for example ?
                
> Final methods on ResourceNameIterator prevent full customization of IResourceStreamLocator
> ------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4530
>                 URL: https://issues.apache.org/jira/browse/WICKET-4530
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.5, 6.0.0-beta1
>            Reporter: Jan Riehn
>              Labels: IResourceStreamLocator, ResourceNameIterator, resource
>
> IResourceStreamLocator contains the method newResourceNameIterator(...) which builds a ResourceNameIterator. Unfortunately ResourceNameIterator declares several getter methods (getLocale(), getStyle(), getVariation(), getExtension()) as final and thus ties the public API to the internal implementation of ResourceNameIterator. Therefore it's not possible to fully customize the behavior of ResourceNameIterator by subclassing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira