Interface FileAccessBadge

All Known Implementing Classes:

public interface FileAccessBadge


This is a marker interface that enables access to the filesystem; it implements no methods. Its presence or absence in a class is all that we're interested in. In this case, its prescence means that the class should be trusted to read and write all files. This is obviously dangerous, and should be used sparingly. Note that the interface is declared public, and that because of this others outside the package could implement this interface and do things with files. We live with this because we're more interested in easy access than security at this point.

From Greg Frascadore, JavaPro May 1999.

Don McGregor