avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: [Proposal] WriteProtectable/ReadOnly interfaces
Date Tue, 10 Jun 2003 12:43:29 GMT
Anton Tagunov wrote:
> Hi, All!
> 
> I think that we have got one more interface
> crystalized in our works:
> 
>     public interface WriteProtectable
>     {
>         void makeReadOnly();
>     }
> 
> As I will show later it also needs a twin
> marker interface ReadOnly:
> 
>     public interface ReadOnly
>     {
>     }
> 
> For instance DefaultServiceManager is WriteProtectable
> while FortressServiceManager is ReadOnly.

Marker Interface == Bad.

One thing that we have learned developing in Cocoon land is
that using marker interfaces to record class meta information
is bad practice.  What happens if the class is extended and
it is no longer ReadOnly?  You can't get rid of the interface
from the list of implements clauses.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message