directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <seelm...@apache.org>
Subject Re: Dn class implemented interfaces
Date Tue, 15 Feb 2011 21:14:12 GMT
On Tue, Feb 15, 2011 at 4:00 PM, Emmanuel Lecharny <elecharny@gmail.com> wrote:
> Hi again,
>
> going a bit deeper, I'm wondering if the Dn class should implement the
> Cloneable and Serializable interfaces?
>
> Cloneable is probably not needed, as the Dn is immutable,

+1

> and Serializable
> is also useless, as we already have a DnSerializer helper class that handles
> the Dn serialization. Note that we have a DnFactory class in the server
> which expect the Dn class to be serializable, but this is probably not
> needed, as we never serialize the associated cache to disk.

As a DN has a perfect string representation a binary serialization is
not required for the user.

Mime
View raw message