You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Karel Hübl (JIRA)" <ji...@apache.org> on 2012/12/26 07:52:12 UTC
[jira] [Created] (PIVOT-886) Make BXMLSerializer more extendable
Karel Hübl created PIVOT-886:
--------------------------------
Summary: 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
Priority: Minor
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