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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to