From: cvs@openprivacy.orgCVS update: talon/src/java/talon
Date: Thursday February 8, 19101 @ 20:18
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-serv21939/src/java/talon
Modified Files:
ComponentHandle.java Initializer.java
Log Message:
properties should be importing correctly
*****************************************************************
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.5
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/ComponentHandle.java?rev=1.5&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.5&r2=1.4
-----------------------------------
Index: talon/src/java/talon/ComponentHandle.java
diff -u talon/src/java/talon/ComponentHandle.java:1.4 talon/src/java/talon/ComponentHandle.java:1.5
--- talon/src/java/talon/ComponentHandle.java:1.4 Wed Feb 7 01:59:33 2001
+++ talon/src/java/talon/ComponentHandle.java Thu Feb 8 20:18:08 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.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public class ComponentHandle {
@@ -47,7 +47,7 @@
* Create a basic ComponentHandle
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public ComponentHandle() {}
@@ -56,7 +56,7 @@
* pulled from the Talon properties.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public ComponentHandle( String _interface ) {
@@ -68,7 +68,7 @@
* The interface and classname.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public ComponentHandle( String _interface,
String _implementation ) {
@@ -83,7 +83,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.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public ComponentHandle( String _interface,
String _classname,
@@ -98,7 +98,7 @@
* Also set the name.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public ComponentHandle( String name,
String _interface,
@@ -123,8 +123,9 @@
* Set the value of _interface.
* @param v Value to assign to _interface.
*/
- public void setInterface( String _interface ) {
+ public ComponentHandle setInterface( String _interface ) {
this._interface = _interface;
+ return this;
}
/**
@@ -139,8 +140,9 @@
* Set the value of _classname.
* @param v Value to assign to _classname.
*/
- public void setImplementation( String _implementation ) {
+ public ComponentHandle setImplementation( String _implementation ) {
this._implementation = _implementation;
+ return this;
}
/**
@@ -153,15 +155,16 @@
/**
* Set the name for this component.
*/
- public void setName( String name ) {
+ public ComponentHandle setName( String name ) {
this.name = name;
+ return this;
}
/**
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public String getLifetime() {
return this._lifetime;
@@ -172,10 +175,11 @@
*
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
- public void setLifetime( String _lifetime ) {
+ public ComponentHandle setLifetime( String _lifetime ) {
this._lifetime = _lifetime;
+ return this;
}
@@ -184,7 +188,7 @@
/**
* @see Component
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public PropertyManager getInitProperties() {
return this.initProperties;
@@ -194,7 +198,7 @@
* Dump Handle information..
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: ComponentHandle.java,v 1.4 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: ComponentHandle.java,v 1.5 2001/02/09 04:18:08 burton Exp $
*/
public String toString() {
return this.getName() + ":" + this.getInterface() + " -> " + this.getImplementation();
*****************************************************************
File: talon/src/java/talon/Initializer.java
CVSWEB Options: -------------------
CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/Initializer.java?annotate=1.3
CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/src/java/talon/Initializer.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/Initializer.java.diff?r1=1.3&r2=1.2
-----------------------------------
Index: talon/src/java/talon/Initializer.java
diff -u talon/src/java/talon/Initializer.java:1.2 talon/src/java/talon/Initializer.java:1.3
--- talon/src/java/talon/Initializer.java:1.2 Wed Feb 7 01:59:33 2001
+++ talon/src/java/talon/Initializer.java Thu Feb 8 20:18:08 2001
@@ -18,7 +18,7 @@
* Handles intializing Talon and performing all startup procedures.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Initializer.java,v 1.2 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: Initializer.java,v 1.3 2001/02/09 04:18:08 burton Exp $
*/
public class Initializer {
@@ -43,7 +43,7 @@
* Initialize Talon if necessary.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Initializer.java,v 1.2 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: Initializer.java,v 1.3 2001/02/09 04:18:08 burton Exp $
*/
public static void init() {
@@ -98,6 +98,15 @@
handle.setImplementation( (String)ht.get( ComponentHandle.DEPLOY_PROPERTY_IMPLEMENTATION ) );
handle.setLifetime( (String)ht.get( ComponentHandle.DEPLOY_PROPERTY_LIFETIME ) );
+ //add the rest of the parameters to the component...
+
+ Enumeration keys = ht.keys();
+ while ( keys.hasMoreElements() ) {
+ String name = (String)keys.nextElement();
+ String value = (String)ht.get( name );
+ handle.getPropertyManager().setProperty( name, value );
+ }
+
logger.message( handle.toString() );
++i;
@@ -117,7 +126,7 @@
* Return true if Talon is initialized.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Initializer.java,v 1.2 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: Initializer.java,v 1.3 2001/02/09 04:18:08 burton Exp $
*/
public static boolean isInitialized() {
return initialized;
@@ -127,7 +136,7 @@
* Return true if Talon is working.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Initializer.java,v 1.2 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: Initializer.java,v 1.3 2001/02/09 04:18:08 burton Exp $
*/
public static boolean isWorking() {
return working;
@@ -137,7 +146,7 @@
* Return true if Talon should be initialized.
*
* @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
- * @version $Id: Initializer.java,v 1.2 2001/02/07 09:59:33 burton Exp $
+ * @version $Id: Initializer.java,v 1.3 2001/02/09 04:18:08 burton Exp $
*/
public static boolean shouldInitialize() {
return isWorking() == false && isInitialized() == false;
This archive was generated by hypermail 2b30 : Thu Feb 08 2001 - 20:18:41 PST