CVS update: talon/src/java/talon/interfaces

From: cvs@openprivacy.org
Date: Tue Jan 16 2001 - 08:06:31 PST


Date: Tuesday January 16, 19101 @ 8:06
Author: burton
CVSWEB Options: -------------------

Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces

-----------------------------------

Update of /usr/local/cvsroot/talon/src/java/talon/interfaces
In directory openprivacy.org:/tmp/cvs-serv18519/src/java/talon/interfaces

Modified Files:
        Logger.java PropertyManager.java
Log Message:
Impl of a basic Logger interface... stolen from Turbine/jEdit/Jetspeed

*****************************************************************
File: talon/src/java/talon/interfaces/Logger.java

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/Logger.java?annotate=1.2

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/Logger.java?rev=1.2&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/Logger.java.diff?r1=1.2&r2=1.1

-----------------------------------

Index: talon/src/java/talon/interfaces/Logger.java
diff -u talon/src/java/talon/interfaces/Logger.java:1.1 talon/src/java/talon/interfaces/Logger.java:1.2
--- talon/src/java/talon/interfaces/Logger.java:1.1 Tue Jan 16 02:42:33 2001
+++ talon/src/java/talon/interfaces/Logger.java Tue Jan 16 08:06:30 2001
@@ -0,0 +1,96 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the LICENSE which you should have obtaind with this package.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ */
+
+package talon.interfaces;
+
+import java.util.*;
+
+
+/**
+ * Class similar to java.lang.Properties
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+public interface Logger {
+
+
+ /**
+ * Log a message.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void message( String message );
+
+ /**
+ * Log a message.
+ *
+ * @param source The source object. The classname of this object will be
+ * entered into the log
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void message( Object source, String message );
+
+ /**
+ * Log a message.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void debug( String message );
+
+ /**
+ * Log a debug message.
+ *
+ * @param source The source object. The classname of this object will be
+ * entered into the log
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void debug( Object source, String message );
+
+ /**
+ * Log a warning message.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void warning( String message );
+
+ /**
+ * Log a warning message.
+ *
+ * @param source The source object. The classname of this object will be
+ * entered into the log
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void warning( Object source, String message );
+
+ /**
+ * Log an error message.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void error( String message );
+
+ /**
+ * Log an error message.
+ *
+ * @param source The source object. The classname of this object will be
+ * entered into the log
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: Logger.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void error( Object source, String message );
+
+}

*****************************************************************
File: talon/src/java/talon/interfaces/PropertyManager.java

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.java?annotate=1.2

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.java?rev=1.2&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/interfaces/PropertyManager.java.diff?r1=1.2&r2=1.1

-----------------------------------

Index: talon/src/java/talon/interfaces/PropertyManager.java
diff -u talon/src/java/talon/interfaces/PropertyManager.java:1.1 talon/src/java/talon/interfaces/PropertyManager.java:1.2
--- talon/src/java/talon/interfaces/PropertyManager.java:1.1 Tue Jan 16 02:42:33 2001
+++ talon/src/java/talon/interfaces/PropertyManager.java Tue Jan 16 08:06:30 2001
@@ -0,0 +1,79 @@
+/*
+ * This program is free software; you can redistribute it and/or modify it under
+ * the terms of the LICENSE which you should have obtaind with this package.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ */
+
+package talon.interfaces;
+
+import java.util.*;
+
+
+/**
+ * Class similar to java.lang.Properties
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+public interface PropertyManager {
+
+ /**
+ * Get a given property from parsed props.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public String getProperty( String name );
+
+ /**
+ * Get a given property from parsed props. Return default if it is not defined.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public String getProperty( String name, String value );
+
+ /**
+ * Get a property but assume it is a boolean
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public boolean getBoolean( String name );
+
+ /**
+ * Get a property but assume it is multivalued.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public Vector getVector( String name );
+
+ /**
+ * Set a property
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void setProperty( String name, String value );
+
+ /**
+ * Set a boolean property
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public void setBoolean( String namme, boolean value );
+
+ /**
+ * Get all known keys for registered properties.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: PropertyManager.java,v 1.2 2001/01/16 16:06:30 burton Exp $
+ */
+ public Enumeration getKeys();
+
+}



This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:15 PST