directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <akaras...@gmail.com>
Subject Re: Entry API
Date Fri, 05 Feb 2010 06:31:06 GMT
On Thu, Feb 4, 2010 at 10:00 PM, Emmanuel L├ęcharny <elecharny@apache.org>wrote:

> On 2/4/10 8:54 PM, Alex Karasulu wrote:
>
>> On Thu, Feb 4, 2010 at 8:38 PM, Emmanuel Lecharny<elecharny@gmail.com
>> >wrote:
>>   I'd be careful to remove interfaces.  As an API you have to allow the
>> broadest range of implementation possibilities. Interfaces are good to
>> have.
>>  When in doubt keep the interface.
>>
>>
>
> Another possibility (in conjonction with he fact that we might want to have
> schema aware entries) is to use a factory to build entries, instead of
> having a constructor.
>
> If we have to keep the Interface, what would be the name for the class ?
> EntryImpl ? DefaultEntry?
>
>
I see what you're getting at.  Sometimes I feel like this IEntry for the
interface name might be best so there's room to have a simple Entry class as
the default implementation while still offering an interface to implement
for API users.

Alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message