diff --git a/projects/samskivert/src/java/com/samskivert/util/Context.java b/projects/samskivert/src/java/com/samskivert/util/Context.java new file mode 100644 index 00000000..94bcb92d --- /dev/null +++ b/projects/samskivert/src/java/com/samskivert/util/Context.java @@ -0,0 +1,22 @@ +// +// $Id: Context.java,v 1.1 2001/07/20 19:46:56 mdb Exp $ + +package com.samskivert.util; + +/** + * The context interface serves as a basis for a system whereby an + * application that makes use of a number of decoupled services, can + * provide implementations of components needed by those services and do + * with a single object that implements a host of different + * Context interfaces, each of which encapsulates the needs + * of a particular component. This is hard to explain in the abstract, and + * easy to understand in the concrete, but this is documentation and I'm + * lazy, so you'll have to try to cope with the abstract. + */ +public interface Context +{ + /** + * Returns a reference to the config object in use in this application. + */ + public Config getConfig (); +}