CVS update: talon/src/java/talon

From: cvs@openprivacy.org
Date: Tue Mar 13 2001 - 15:41:49 PST

  • Next message: cvs@openprivacy.org: "CVS update: sierra/src/java/org/openprivacy/sierra/query/talon/implementations/simple"

    Date: Tuesday March 13, 19101 @ 15:41
    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-serv318/src/java/talon

    Modified Files:
            ComponentFactory.java
    Log Message:
    ...

    *****************************************************************
    File: talon/src/java/talon/ComponentFactory.java

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

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

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

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

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

    Index: talon/src/java/talon/ComponentFactory.java
    diff -u talon/src/java/talon/ComponentFactory.java:1.12 talon/src/java/talon/ComponentFactory.java:1.13
    --- talon/src/java/talon/ComponentFactory.java:1.12 Mon Mar 12 23:37:40 2001
    +++ talon/src/java/talon/ComponentFactory.java Tue Mar 13 15:41:49 2001
    @@ -17,7 +17,7 @@
      * Create instances of components and manage their lifetimes.
      *
      * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
      */
     public class ComponentFactory {
     
    @@ -68,7 +68,7 @@
          * Static initializer...
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         static {
     
    @@ -76,12 +76,27 @@
             //Initializer.init();
     
         }
    +
    +
    + /**
    + * Get a Component via class. This will create the component on demand.
    + *
    + * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
    + */
    + public static Component getInstance( Class _class )
    + throws TalonException {
    +
    + return getInstance( _class.getName() );
    +
    + }
    +
         
         /**
          * Get a Component via classname. This will create the component on demand.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         public static Component getInstance( String classname )
             throws TalonException {
    @@ -95,7 +110,7 @@
          * Given a ComponentHandle get a Component
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         public static Component getInstance( ComponentHandle handle )
             throws TalonException {
    @@ -158,7 +173,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         private static void constrain( String name,
                                        ComponentHandle handle,
    @@ -182,7 +197,7 @@
          * the given prototype as a basis for getting more info.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         private static void constrain( ComponentHandle handle,
                                        ComponentHandle prototype ) {
    @@ -218,7 +233,7 @@
          * Get a component instantiating a new one everytime we need it.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         private static Component getDemandBasedInstance( ComponentHandle handle )
             throws TalonException {
    @@ -233,7 +248,7 @@
          * Get a singleton or create it if necessary.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         private static Component getSingletonBasedInstance( ComponentHandle handle )
             throws TalonException {
    @@ -256,7 +271,7 @@
          * Perform basic instantiation on a component.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         private static Component instantiateComponent( ComponentHandle handle )
             throws TalonException {
    @@ -278,7 +293,7 @@
          * Put a singleton to the Factory.
          * FIXME: Should this throw an Exception if this object is already present?
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         static void putSingleton( ComponentHandle handle, Component comp ) {
             singletons.put( handle, comp );
    @@ -291,7 +306,7 @@
          * don't have to worry about fetching an object from the component system.
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         public static Logger getLogger() {
             return ComponentFactory.logger;
    @@ -301,7 +316,7 @@
          *
          *
          * @author <a href="mailto:burton@relativity.yi.org">Kevin A. Burton</a>
    - * @version $Id: ComponentFactory.java,v 1.12 2001/03/13 07:37:40 burton Exp $
    + * @version $Id: ComponentFactory.java,v 1.13 2001/03/13 23:41:49 burton Exp $
          */
         public static void setLogger( Logger logger ) {
             ComponentFactory.logger = logger;



    This archive was generated by hypermail 2b30 : Tue Mar 13 2001 - 15:42:23 PST