[ 
https://issues.apache.org/jira/browse/PIVOT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sandro Martini updated PIVOT-886:
---------------------------------

    Fix Version/s: 2.1
    
> Make BXMLSerializer more extendable
> -----------------------------------
>
>                 Key: PIVOT-886
>                 URL: https://issues.apache.org/jira/browse/PIVOT-886
>             Project: Pivot
>          Issue Type: Improvement
>            Reporter: Karel Hübl
>            Assignee: Sandro Martini
>            Priority: Minor
>             Fix For: 2.1
>
>
> If I want to extend BXMLSerializer, I need also to change static MimeTypes 
> map on BXMLSerializer:
> For example:
> public class InjectingSerializer extends BXMLSerializer {
>       static {
>               BXMLSerializer.getMimeTypes().put(MIME_TYPE, 
> InjectingSerializer.class);
>       }
> ...
> May be the MimeTypes map should be instance variable and implicit mapping of 
> MIME_TYPE should be this.getClass(), so one does not need to change mapping 
> of MimeTypes when extending BXMLSerializer.
> May be implementation of AbstractFactory pattern for Pivot serializer should 
> be considered.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to