[
https://issues.apache.org/jira/browse/PIVOT-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roger Whitcomb reassigned PIVOT-886:
------------------------------------
Assignee: Roger Whitcomb (was: Sandro Martini)
> 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: Roger Whitcomb
> Priority: Minor
> Fix For: 2.5
>
>
> 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 was sent by Atlassian JIRA
(v6.4.14#64029)