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