From: cvs@openprivacy.orgCVS update: talon/src/java/talon
Date: Friday February 23, 19101 @ 2:09
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
-----------------------------------
Update of /usr/local/cvs/public/talon/src/java/talon
In directory giga:/tmp/cvs-serv387/src/java/talon
Modified Files:
ComponentHandle.java TalonException.java
Log Message:
...
*****************************************************************
File: talon/src/java/talon/ComponentHandle.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/ComponentHandle.java?annotate=1.9
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/ComponentHandle.java?rev=1.9&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/ComponentHandle.java.diff?r1=1.9&r2=1.8
-----------------------------------
Index: talon/src/java/talon/ComponentHandle.java
diff -u talon/src/java/talon/ComponentHandle.java:1.8 talon/src/java/talon/ComponentHandle.java:1.9
--- talon/src/java/talon/ComponentHandle.java:1.8 Sun Feb 18 23:47:52 2001
+++ talon/src/java/talon/ComponentHandle.java Fri Feb 23 02:09:17 2001
@@ -18,7 +18,7 @@
* Object which is used to find components within the system.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public class ComponentHandle {
@@ -27,6 +27,11 @@
public static final String DEPLOY_PROPERTY_LIFETIME = "talon_lifetime";
public static final String DEPLOY_PROPERTY_NAME = "talon_name";
public static final String DEPLOY_PROPERTY_DESCRIPTION = "talon_description";
+
+
+ public static final String LIFETIME_DEMAND = "demand";
+
+ public static final String LIFETIME_SINGLETON = "singleton";
private String _interface = null;
@@ -50,7 +55,7 @@
* Create a basic ComponentHandle
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle() {}
@@ -59,7 +64,7 @@
* pulled from the Talon properties.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle( String _interface ) {
@@ -71,7 +76,7 @@
* The interface and classname.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle( String _interface,
String _implementation ) {
@@ -86,7 +91,7 @@
* The interface and classname. You may specify a PropertyManager here.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle( String _interface,
String _classname,
@@ -101,7 +106,7 @@
* Also set the name.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle( String name,
String _interface,
@@ -165,7 +170,7 @@
/**
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public String getLifetime() {
return this._lifetime;
@@ -175,7 +180,7 @@
/**
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle setLifetime( String _lifetime ) {
this._lifetime = _lifetime;
@@ -184,7 +189,7 @@
/**
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public String getDescription() {
return this._description;
@@ -192,7 +197,7 @@
/**
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public ComponentHandle setDescription( String _description ) {
this._description = _description;
@@ -202,7 +207,7 @@
/**
* @see Component
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public PropertyManager getInitProperties() {
return this.initProperties;
@@ -217,7 +222,7 @@
* Dump Handle information..
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public String toString() {
return this.getName() + ":" + this.getInterface() + " -> " + this.getImplementation();
@@ -227,7 +232,7 @@
* Return a cloned ComponentHandle.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.8 2001/02/19 07:47:52 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.9 2001/02/23 10:09:17 burton Exp $
*/
public Object clone() {
*****************************************************************
File: talon/src/java/talon/TalonException.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/TalonException.java?annotate=1.3
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/TalonException.java?rev=1.3&content-type=text/x-cvsweb-markup
CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/TalonException.java.diff?r1=1.3&r2=1.2
-----------------------------------
Index: talon/src/java/talon/TalonException.java
diff -u talon/src/java/talon/TalonException.java:1.2 talon/src/java/talon/TalonException.java:1.3
--- talon/src/java/talon/TalonException.java:1.2 Mon Feb 19 18:23:44 2001
+++ talon/src/java/talon/TalonException.java Fri Feb 23 02:09:17 2001
@@ -14,6 +14,13 @@
import java.util.*;
import java.lang.*;
+/**
+ * Base Exception for Talon. Allows Exceptions to be passed as a reason for why
+ * this Exception was created.
+ *
+ * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
+ * @version $Id: TalonException.java,v 1.3 2001/02/23 10:09:17 burton Exp $
+ */
public class TalonException extends Exception {
private Exception reason = null;
@@ -27,7 +34,7 @@
}
public TalonException( Exception reason ) {
- super();
+ super( reason.getMessage() );
this.reason = reason;
}
This archive was generated by hypermail 2b30 : Fri Feb 23 2001 - 02:10:19 PST