CVS update: talon/docs

From: cvs@openprivacy.org
Date: Mon Mar 12 2001 - 23:37:40 PST

  • Next message: cvs@openprivacy.org: "CVS update: talon/src/config"

    Date: Monday March 12, 19101 @ 23:37
    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/docs

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

    Update of /usr/local/cvs/public/talon/docs
    In directory giga:/tmp/cvs-serv31800/docs

    Modified Files:
            TODO.bugzilla
    Log Message:
    now trying to determine interfaces for those that are not specified

    *****************************************************************
    File: talon/docs/TODO.bugzilla

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

    CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/docs/TODO.bugzilla?annotate=1.2

    CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/docs/TODO.bugzilla?rev=1.2&content-type=text/x-cvsweb-markup

    CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/talon/docs/TODO.bugzilla.diff?r1=1.2&r2=1.1

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

    Index: talon/docs/TODO.bugzilla
    diff -u talon/docs/TODO.bugzilla:1.1 talon/docs/TODO.bugzilla:1.2
    --- talon/docs/TODO.bugzilla:1.1 Fri Mar 9 16:17:44 2001
    +++ talon/docs/TODO.bugzilla Mon Mar 12 23:37:35 2001
    @@ -5,8 +5,8 @@
     # Add-URL: http://bugzilla.openprivacy.org/enter_bug.cgi?product=Talon
     # Base-URL: http://bugzilla.openprivacy.org/
     # Author: Kevin A. Burton ( burton@apache.org | burton@openprivacy.org )
    -# Last-modified: Thu Mar 8 00:19:20 2001
    -# Version: $Id: TODO.bugzilla,v 1.1 2001/03/10 00:17:44 burton Exp $
    +# Last-modified: Mon Mar 12 23:32:06 2001
    +# Version: $Id: TODO.bugzilla,v 1.2 2001/03/13 07:37:35 burton Exp $
     # Protocol-version: 1.0.2
     # Commentary:
     #
    @@ -21,8 +21,7 @@
     #################################################################################
     ---------------------------------------------------------------------------------
     ID: 10
    -Short Description: Lazy instantiation may cause problems with multi-threaded
    - code
    +Short Description: Lazy instantiation may cause problems with multi-threaded code
     Edit URL: http://bugzilla.openprivacy.org/show_bug.cgi?id=10
     Product: Talon
     Version: unspecified
    @@ -51,6 +50,33 @@
     
     Try to come up with a solution to this. Lazy instantiation could be good but we
     should synchronized around this.
    +
    +
    +
    +---------------------------------------------------------------------------------
    +ID: 13
    +Short Description: ComponentHandle needs to support multiple interfaces.
    +Edit URL: http://bugzilla.openprivacy.org/show_bug.cgi?id=13
    +Product: Talon
    +Version: unspecified
    +Platform: PC
    +Operating System: Linux
    +Status: NEW
    +Severity: normal
    +Priority: P2
    +Resolution:
    +Assigned: burton@relativity.yi.org
    +Reporter: burton@relativity.yi.org
    +Component: Defaunt
    +URL:
    +Target Milestone: ---
    +QA Contact: 0
    +Status Whiteboard:
    +keywords:
    +Description:
    +A Component can technically implement multiple interfaces, need to specify a
    +main interface which is getInterface() and then we can have all interfaces under
    +a main getInterfaces() method...
     
     
     



    This archive was generated by hypermail 2b30 : Mon Mar 12 2001 - 23:37:45 PST

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

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

    Index: talon/src/java/talon/ReferenceFactory.java
    diff -u talon/src/java/talon/ReferenceFactory.java:1.1 talon/src/java/talon/ReferenceFactory.java:1.2
    --- talon/src/java/talon/ReferenceFactory.java:1.1 Fri Mar 9 16:17:44 2001
    +++ talon/src/java/talon/ReferenceFactory.java Mon Mar 12 23:37:40 2001
    @@ -25,7 +25,7 @@
      * @see #Component.getTypeReference
      * @see #ComponentHandle.getTypeReference
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ReferenceFactory.java,v 1.1 2001/03/10 00:17:44 burton Exp $
    + * @version $Id: ReferenceFactory.java,v 1.2 2001/03/13 07:37:40 burton Exp $
      */
     public class ReferenceFactory {
     
    @@ -33,7 +33,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ReferenceFactory.java,v 1.1 2001/03/10 00:17:44 burton Exp $
    + * @version $Id: ReferenceFactory.java,v 1.2 2001/03/13 07:37:40 burton Exp $
          */
         public static URI getComponentReference( Component component ) {
     
    @@ -65,20 +65,54 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ReferenceFactory.java,v 1.1 2001/03/10 00:17:44 burton Exp $
    + * @version $Id: ReferenceFactory.java,v 1.2 2001/03/13 07:37:40 burton Exp $
          */
         public static URI getTypeReference( Component component ) {
    - return getTypeReference( component.getComponentHandle() );
    +
    + //try to use the known interfaces...
    +
    + ComponentHandle handle = component.getComponentHandle();
    +
    + StringBuffer interfaceURIPart = new StringBuffer();
    +
    + if ( handle.getInterface() == null ) {
    +
    + Class[] interfaces = component.getInterfaces();
    +
    + for ( int i = 0; i < interfaces.length; ++i ) {
    + interfaceURIPart.append( "/interface/" );
    + interfaceURIPart.append( interfaces[i].getName() );
    + }
    +
    + return getTypeReference( handle, interfaceURIPart.toString() );
    + }
    +
    + return getTypeReference( handle );
    +
         }
     
         /**
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ReferenceFactory.java,v 1.1 2001/03/10 00:17:44 burton Exp $
    + * @version $Id: ReferenceFactory.java,v 1.2 2001/03/13 07:37:40 burton Exp $
          */
         public static URI getTypeReference( ComponentHandle handle ) {
    - return new URI( "talon:///component/" + handle.getImplementation() + "/interface/" + handle.getInterface() );
    +
    + return getTypeReference( handle, "/interface/" + handle.getInterface() );
    +
    + }
    +
    + /**
    + *
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: ReferenceFactory.java,v 1.2 2001/03/13 07:37:40 burton Exp $
    + */
    + private static URI getTypeReference( ComponentHandle handle, String interfaceURIPart) {
    +
    + return new URI( "talon:///component/" + handle.getImplementation() + interfaceURIPart );
    +
         }
         
     }



    This archive was generated by hypermail 2b30 : Mon Mar 12 2001 - 23:37:45 PST