From 43e7ebcd4d4013b3066dccb67cc92edc4935abdc Mon Sep 17 00:00:00 2001 From: mdb Date: Fri, 20 Jul 2001 19:46:56 +0000 Subject: [PATCH] Created a basic context that will serve as a base interface for the variety of other contexts we're going to need for the Three Rings game platform. git-svn-id: https://samskivert.googlecode.com/svn/trunk@196 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/util/Context.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 projects/samskivert/src/java/com/samskivert/util/Context.java 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 (); +}