avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AVRO-110) make GenericData, & ReflectData implement singleton pattern
Date Wed, 02 Sep 2009 18:14:32 GMT

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

Doug Cutting resolved AVRO-110.

       Resolution: Fixed
    Fix Version/s: 1.1.0

I just committed this.

> make GenericData, & ReflectData implement singleton pattern
> -----------------------------------------------------------
>                 Key: AVRO-110
>                 URL: https://issues.apache.org/jira/browse/AVRO-110
>             Project: Avro
>          Issue Type: Improvement
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.1.0
>         Attachments: AVRO-104.patch
> Currently GenericData has only static methods.  ReflectData used to follow that pattern,
but in AVRO-104 was converted into a normally instantiable class, with a public constructor.
> Better for both would be the singleton pattern.  A static get() method would return the
single, statically-allocated instance.  Instances could thus implement long-lived caches (a
feature of ReflectData that was lost in AVRO-104, adversely affecting performance).  A protected
constructor would be provided so that singleton subclasses can be implemented that override

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message