User: jung    
  Date: 00/12/22 07:43:28

  Modified:    src/de/infor/ce/util Component.java Environment.java
                        URN.java util.dfPackage
  Removed:     src/de/infor/ce/util How Pooling Should Work .dfSequence
                        ObjectFactory.java PooledThread.java
                        PooledThreadLocal.java ThreadPool.java
  Log:
  repackaged thread pooling. Coherent environment. Exception extensions.
  
  Revision  Changes    Path
  1.3       +26 -54    zoap/src/de/infor/ce/util/Component.java
  
  Index: Component.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/de/infor/ce/util/Component.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Component.java    2000/12/04 12:35:51     1.2
  +++ Component.java    2000/12/22 15:43:26     1.3
  @@ -1,45 +1,22 @@
  -/*   
  - *   $Id: Component.java,v 1.2 2000/12/04 12:35:51 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  +/*
  + * $Source: /products/cvs/ejboss/zoap/src/de/infor/ce/util/Component.java,v $
  + * The Zero-effort Object Access Package is a library to support XML/SOAP 
serialisation and invocation.
  + * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
  + * D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + * This library is free software; you can redistribute it and/or
  + * modify it under the terms of the GNU Lesser General Public
  + * License as published by the Free Software Foundation; either
  + * version 2.1 of the License, or (at your option) any later version.
  + *
  + * This library 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.  See the GNU
  + * Lesser General Public License for more details.
  + *
  + * You should have received a copy of the GNU Lesser General Public
  + * License along with this library; if not, write to the Free Software
  + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
   package de.infor.ce.util;
  @@ -56,7 +33,7 @@
    * meta-data and resources. Components are organised in a hierarchy in which 
subordinate components depend on higher-level
    * components, but not vice-versa. <br> In order to cross the component boundary, 
we must use techniques such as
    * serialisation, distributed transactions, etc., but maybe in a lightweight 
format. <br>
  - * @author $Author: jung $
  + * @author jung
    * @version $Version:$
    */
   
  @@ -79,10 +56,7 @@
        /** a map that associated classloaders with components */
        private static Map classLoader2Components = new HashMap();
   
  -    /**
  -     * a public exception that is thrown if one has tried to initialise two
  -     * components with the same classloader
  -     */
  +     /** a public exception that is thrown if someone has tried to initialise two 
components with the same classloader */
   
        public static class DoubleComponentException extends RuntimeException {
        }
  @@ -185,13 +159,11 @@
   
        }
   
  -    /**
  -     * method to retrieve a component associated to a particular classloader
  -     */
  +     /** method to retrieve a component associated to a particular classloader */
   
  -    final public static Component getComponentFor(ClassLoader classLoader) {
  -        return (Component) classLoader2Components.get(classLoader);
  -    }
  +     final public static Component getComponentFor(ClassLoader classLoader) {
  +             return (Component)classLoader2Components.get(classLoader);
  +     }
   
   
  -}
  +} // Component
  
  
  
  1.3       +159 -160  zoap/src/de/infor/ce/util/Environment.java
  
  Index: Environment.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/de/infor/ce/util/Environment.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Environment.java  2000/12/04 12:35:51     1.2
  +++ Environment.java  2000/12/22 15:43:26     1.3
  @@ -1,183 +1,173 @@
   /*
  - *   $Id: Environment.java,v 1.2 2000/12/04 12:35:51 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + * $Source: /products/cvs/ejboss/zoap/src/de/infor/ce/util/Environment.java,v $
  + * The Zero-effort Object Access Package is a library to support XML/SOAP 
serialisation and invocation.
  + * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
  + * D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + * This library is free software; you can redistribute it and/or
  + * modify it under the terms of the GNU Lesser General Public
  + * License as published by the Free Software Foundation; either
  + * version 2.1 of the License, or (at your option) any later version.
  + *
  + * This library 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.  See the GNU
  + * Lesser General Public License for more details.
  + *
  + * You should have received a copy of the GNU Lesser General Public
  + * License along with this library; if not, write to the Free Software
  + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
   package de.infor.ce.util;
   
   import java.util.Properties;
  +import java.lang.reflect.Field;
  +import java.lang.reflect.Modifier;
  +import de.infor.ce.console.Console;
   
  -import java.io.PrintStream;
  -import java.io.InputStream;
  -
   /**
  - * Environment is an abstract container for administration and configuration
  - * of the present package.
  - * @author $Author: jung $
  - * @version $Version:$
  + * Environment contains static variables and other helping stuff that either 
influence
  + * the compilation of the package or initialise its runtime environment from config 
files.
  + * @author jung
  + * @version $Revision: 1.3 $
    */
   
   public abstract class Environment {
   
  -  /**
  -   * compile-time debugging output configuration
  -   */
  -
  -  public final static boolean DEBUG_UTIL=false;
  -  public final static boolean DEBUG_FACTORY=false;
  -  public final static boolean DEBUG_THREADPOOL=false;
  -
  -  /**
  -   * runtime logging settings
  -   */
  -
  -  public static int LOG_UTIL=1;
  -  public static int LOG_FACTORY=1;
  -  public static int LOG_THREADPOOL=1;
  -
  -  /**
  -   * compile-time constants
  -   */
  -
  -  public final static String PROPERTY_FACTORY="factory";
  -  public final static String CONFIG_FILE="util.conf";
  -
  -  /**
  -   * runtime streams
  -   */
  -
  -  public final static PrintStream out=System.out;
  -  public final static InputStream in=System.in;
  -  public final static PrintStream err=System.err;
  -
  -  //
  -  // static initialisation
  -  //
  -
  -  static{
  -
  -    if(DEBUG_UTIL) {
  -      out.print(Environment.class.toString()+".static initializer\n");
  -    }
  -
  -    // clone the system settings where defaults could have been installed
  -    Properties properties = new Properties(System.getProperties());
  -
  -    try{
  -
  -      // and add your personal configuration file
  -      properties.load(Thread.currentThread().getContextClassLoader().
  -        getResourceAsStream(CONFIG_FILE));
  -
  -    } catch(Exception e) {
  -
  -      if(DEBUG_UTIL) {
  -        err.print(Environment.class.toString()+".static initializer:"+
  -          " encountered error while trying to load properties."+
  -          " Maybe the config file does not exist. "+e+"\n");
  -      }
  -
  -    }
  -
  -    // take over the properties to influence the environment
  -
  -    if(properties.containsKey(PROPERTY_FACTORY+".defaultObjectFactory.class")) {
  -
  -      // we have found a defaultObjectFactory class for creation
  -      try{
  -
  -        // so do it
  -        Class.forName(properties.getProperty(PROPERTY_FACTORY+
  -          ".defaultObjectFactory.class"),true,
  -            Thread.currentThread().getContextClassLoader()).newInstance();
  -
  -      } catch (Exception e) {
  -
  -        if(DEBUG_UTIL || LOG_UTIL>0 ) {
  -          err.print("de.infor.ce.util.Environment.static initializer:"+
  -            " encountered error while accessing factory class "+
  -              
properties.getProperty(PROPERTY_FACTORY+".defaultObjectFactory.class")+
  -                " "+e+"\n");
  -        } // if
  -
  -     } // try
  -
  -   } // if
  -
  -  } // static
  -
  -}
  -
  -/*
  - *   $Log: Environment.java,v $
  - *   Revision 1.2  2000/12/04 12:35:51  jung
  - *   adopted to latest jboss container,
  - *   
  - *   added decimal and date
  - *   
  - *   removed some problems due to forward-referencing in meta-data
  - *   
  - *   added serialisation policy
  - *   
  - *   Revision 1.1.1.1  2000/08/10 21:06:47  jung
  - *   Initial import.
  - *   
  - *   
  - *   Revision 1.1.1.1.2.3  2000/08/04 17:20:18  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.1.1.2.2  2000/07/17 12:46:15  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.1.1.2.1  2000/07/13 12:46:17  jung
  - *   package renaming, most of the zoap stuff now under org.zoap
  - *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  - *
  - *   changed the makefile, adopted most of the licenses
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:27  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  +     //
  +     // Place your non-final public statics here
  +     //
  +
  +     //
  +     // non-final public system statics
  +     //
  +
  +     /** runtime logging settings */
  +     public static int LOG_LEVEL = 1;
  +
  +     /** the properties belonging to this module */
  +     public static Properties PROPERTIES = System.getProperties();
  +
  +     /** the logger for this module */
  +     public static Console CONSOLE = null;
  +
  +     //
  +     // final public system static
  +     //
  +
  +     /** whether debug messages are produced, compile-time switch */
  +     public static final int DEBUG_LEVEL = 0;
  +
  +     /** how this module is called */
  +     public static final String MODULE_NAME = 
Environment.class.getName().substring(0,
  +     Environment.class.getName().length() - 12);
  +
  +     /** where the resources needed to configure this module are found */
  +     public static final String RESOURCE_PATH = "";
  +
  +     /** whether a config file is loaded */
  +     public static final boolean READ_CONFIG_FILE = false;
  +
  +     /** where the resources needed to configure this module are found */
  +     public static final String CONFIG_FILE_SUFFIX = ".conf";
  +
  +     //
  +     // static initialisation part, DO NOT MODIFY
  +     //
  +
  +     /** initialisation is done at class loading time */
  +     static {
  +
  +             try {
  +                     CONSOLE = 
de.infor.ce.console.Environment.CONSOLE_FACTORY.createConsole(MODULE_NAME);
  +             } catch (Exception e) { }
  +
  +             if (READ_CONFIG_FILE) {
  +                     try {
  +
  +                             if (DEBUG_LEVEL > 0)
  +                                     CONSOLE.log(Environment.class.toString() +
  +                                     "_static initializer: trying to load 
configuration resource file " +
  +                                     RESOURCE_PATH + MODULE_NAME + 
CONFIG_FILE_SUFFIX);
  +
  +                             // and add your personal configuration file
  +                             PROPERTIES.load(Environment.class.getClassLoader().
  +                             getResourceAsStream(RESOURCE_PATH + MODULE_NAME + 
CONFIG_FILE_SUFFIX));
  +                     } catch (Exception e) {
  +
  +                             if (DEBUG_LEVEL > 0) {
  +                                     CONSOLE.error(Environment.class.toString() +
  +                                     "_static initializer: encountered " + e + " 
while trying to load configuration resource file " +
  +                                     RESOURCE_PATH + MODULE_NAME + 
CONFIG_FILE_SUFFIX);
  +                                     CONSOLE.exception(e);
  +                             }
  +                     }
  +             }
  +
  +             try {
  +                     Field[] fields = Environment.class.getFields();
  +
  +                     for (int count = 0; count < fields.length; count++) {
  +                             try {
  +                                     if 
(PROPERTIES.containsKey(fields[count].getName()) &&
  +                                     
Modifier.isStatic(fields[count].getModifiers()) &&
  +                                     
!Modifier.isFinal(fields[count].getModifiers())) {
  +
  +
  +                                             if (DEBUG_LEVEL > 0)
  +                                                     
CONSOLE.log(Environment.class.toString() +
  +                                                     "_static initializer: trying 
to initialize field " + fields[count].getName()
  +                                                     + " with configuration 
property " +
  +                                                     
PROPERTIES.getProperty(fields[count].getName()));
  +
  +                                             fields[count].setAccessible(true);
  +
  +                                             if 
(fields[count].getType().equals(boolean.class) ||
  +                                             
fields[count].getType().equals(Boolean.class)) {
  +                                                     
fields[count].set(Environment.class,
  +                                                         new 
Boolean(PROPERTIES.getProperty(fields[count].getName())));
  +                                             } else if 
(fields[count].getType().equals(int.class) ||
  +                                             
fields[count].getType().equals(Integer.class)) {
  +                                                     
fields[count].set(Environment.class,
  +                                                         new 
Integer(PROPERTIES.getProperty(fields[count].getName())));
  +                                             } else if 
(fields[count].getType().equals(double.class) ||
  +                                             
fields[count].getType().equals(Double.class)) {
  +                                                     
fields[count].set(Environment.class,
  +                                                         new 
Double(PROPERTIES.getProperty(fields[count].getName())));
  +                                             } else if 
(fields[count].getType().equals(float.class) ||
  +                                             
fields[count].getType().equals(Float.class)) {
  +                                                     
fields[count].set(Environment.class,
  +                                                         new 
Float(PROPERTIES.getProperty(fields[count].getName())));
  +                                             } else if 
(fields[count].getType().equals(String.class)) {
  +                                                     
fields[count].set(Environment.class, PROPERTIES.
  +                                                     
getProperty(fields[count].getName()));
  +                                             } else {
  +
  +                                                     if (DEBUG_LEVEL > 0)
  +                                                             
CONSOLE.warning(Environment.class.toString() +
  +                                                             "_static initializer: 
type " + fields[count].getType().getName() + " of field " +
  +                                                             
fields[count].getName() + " is not supported by the reflection configurator.");
  +
  +                                             }
  +
  +                                     }
  +                             } catch (Exception e) {
  +                                     if (DEBUG_LEVEL > 0) {
  +                                             
CONSOLE.error(Environment.class.toString() +
  +                                             "_static initializer: encountered " + 
e + " while trying to initialise field " + fields[count].getName());
  +                                             CONSOLE.exception(e);
  +                                     }
  +                             }
  +                     }
  +             } catch (Exception e) {
  +                     if (DEBUG_LEVEL > 0) {
  +                             CONSOLE.error(Environment.class.toString() +
  +                             "_static initializer: encountered " + e + " while 
trying to get class fields");
  +                             CONSOLE.exception(e);
  +                     }
  +             }
  +
  +     } // static
  +
  +} // Environment
  \ No newline at end of file
  
  
  
  1.3       +30 -75    zoap/src/de/infor/ce/util/URN.java
  
  Index: URN.java
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/de/infor/ce/util/URN.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- URN.java  2000/12/04 12:35:52     1.2
  +++ URN.java  2000/12/22 15:43:28     1.3
  @@ -1,45 +1,22 @@
   /*
  - *   $Id: URN.java,v 1.2 2000/12/04 12:35:52 jung Exp $
  - *   Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
  - *   D-66299 Friedrichsthal, Germany. All Rights Reserved.
  - *
  - *   License Statement
  - *
  - *   Redistribution and use of this software and associated documentation 
("Software"), with or without
  - *   modification, are permitted provided that the following conditions are met:
  - *
  - *   1.      Redistributions of source code must retain copyright statements and 
notices.
  - *           Redistributions must also contain a copy of this document.
  - *
  - *   2.      Redistributions in binary form must reproduce the attached copyright 
notice, this list of
  - *           conditions and the following disclaimer in the documentation and/or 
other materials provided
  - *           with the distribution.
  - *
  - *   3.      The end-user documentation included with the redistribution, if any, 
must include the following
  - *           acknowledgment: "This product includes software developed by infor: 
business solutions AG
  - *           (http://www.infor.de/)." Alternately, this acknowledgment may appear 
in the software itself,
  - *           if and wherever such third-party acknowledgments normally appear.
  - *
  - *   4.      The name "infor" must not be used to endorse or promote products 
derived from this
  - *           Software without prior written permission of infor: business solutions 
AG.
  - *           For written permission, please contact [EMAIL PROTECTED]
  - *
  - *   5.      Products derived from this Software may not be called "infor" nor may 
"infor" appear
  - *           in their names without prior written permission of infor: business 
solutions AG. infor
  - *           is a registered trademark of infor:business solutions AG.
  - *
  - *   Disclaimer
  - *
  - *   THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "AS 
IS" AND ANY
  - *   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF
  - *   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  - *
  - *   IN NO EVENT SHALL INFOR: BUSINESS SOLUTIONS AG OR ITS CONTRIBUTORS BE LIABLE 
FOR ANY DIRECT,
  - *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO,
  - *   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 
BUSINESS INTERRUPTION)
  - *   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT
  - *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 
SOFTWARE,
  - *   EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  + * $Source: /products/cvs/ejboss/zoap/src/de/infor/ce/util/URN.java,v $
  + * The Zero-effort Object Access Package is a library to support XML/SOAP 
serialisation and invocation.
  + * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
  + * D-66299 Friedrichsthal, Germany. All Rights Reserved.
  + *
  + * This library is free software; you can redistribute it and/or
  + * modify it under the terms of the GNU Lesser General Public
  + * License as published by the Free Software Foundation; either
  + * version 2.1 of the License, or (at your option) any later version.
  + *
  + * This library 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.  See the GNU
  + * Lesser General Public License for more details.
  + *
  + * You should have received a copy of the GNU Lesser General Public
  + * License along with this library; if not, write to the Free Software
  + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
   package de.infor.ce.util;
  @@ -51,12 +28,13 @@
   import java.util.Map;
   
   /**
  - * URN is a generalisation of a URN that allows to introduce alternative naming 
conventions for resolution (in the short-term
  - * future ;-) equality of urns means that they have a non-empty intersection of 
alternative names.
  - * has anybody an idea how to write a reasonable hashCode for this beast? At the 
moment,
  - * we assume that the first name produces a hashCode that is representative for the 
equality class.
  - * @author $Author: jung $
  - * @version $Revision: 1.2 $
  + * URN is a generalisation of a URL that allows to introduce alternative naming 
conventions for resolution.
  + * (see the ugly MS usage of namespaces: urn-ms-bla-bla instead of 
http://www.moneysoft.com/bla/bla.
  + * Equality of urns means that they have a non-empty intersection of alternative 
names.
  + * Anybode has an idea how to write a reasonable hashCode for this beast? At the 
moment,
  + * we assume that the first (canoncial) name produces a hashCode that is 
representative for the equality class.
  + * @author jung
  + * @version $Revision: 1.3 $
    */
   
   public class URN {
  @@ -76,7 +54,8 @@
        /** construct a new URN with the canonical @arg name */
   
        public URN(String name) {
  -             this(new String[] { name });
  +             this(
  +                 new String[] { name });
        }
   
        /** construct a new URN from an absolute URN and relative one simply means to 
concatenate the names */
  @@ -114,7 +93,8 @@
                                }
                        }
   
  -                     this.names = (String[]) combinedNames.toArray(new 
String[combinedNames.size()]);
  +                     this.names = (String[]) combinedNames.toArray(
  +                         new String[combinedNames.size()]);
                } else
                        this.names = null;
   
  @@ -207,39 +187,5 @@
                return new URL(toString()).openStream();
        }
   
  -}
  +} // URN
   
  -/*
  - *   $Log: URN.java,v $
  - *   Revision 1.2  2000/12/04 12:35:52  jung
  - *   adopted to latest jboss container,
  - *   
  - *   added decimal and date
  - *   
  - *   removed some problems due to forward-referencing in meta-data
  - *   
  - *   added serialisation policy
  - *   
  - *   Revision 1.1.1.1  2000/08/10 21:06:49  jung
  - *   Initial import.
  - *   
  - *   
  - *   Revision 1.1.2.2  2000/08/04 17:20:18  jung
  - *   close to beta stadium. Meta-Data import now works.
  - *   
  - *   Revision 1.1.2.1  2000/07/17 14:02:49  jung
  - *   refactored package and meta-model
  - *
  - *   Revision 1.1.2.1  2000/07/13 12:46:24  jung
  - *   package renaming, most of the zoap stuff now under org.zoap
  - *   util and http stay infor.ce, containerInvoker etc move to org.jboss
  - *
  - *   changed the makefile, adopted most of the licenses
  - *
  - *   Revision 1.1.1.1  2000/07/06 14:11:27  jung
  - *   Import of a pre beta version of ZOAP source with a new directory structure,
  - *   ant-based make, apache-kind of license, etc.
  - *
  - *   jars are coming later because of cvs-history reasons.
  - *
  - */
  
  
  
  1.3       +7 -18     zoap/src/de/infor/ce/util/util.dfPackage
  
  Index: util.dfPackage
  ===================================================================
  RCS file: /products/cvs/ejboss/zoap/src/de/infor/ce/util/util.dfPackage,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- util.dfPackage    2000/12/04 12:35:52     1.2
  +++ util.dfPackage    2000/12/22 15:43:28     1.3
  @@ -7,21 +7,11 @@
   */
   class diagram {
   /**
  -@__ref <oiref:java#Class#de.infor.ce.util.ObjectFactory:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference {
  -}/**
   @__ref <oiref:java#Class#de.infor.ce.util.Environment:oiref><oihard>
   @__modelType reference 
   */
   class reference68 {
   }/**
  -@__ref <oiref:java#Class#de.infor.ce.util.ThreadPool:oiref><oihard>
  -@__modelType reference 
  -*/
  -class reference5 {
  -}/**
   @__ref <oiref:design#Class#id2p4gtcamcwfvycamcygzi.diagram:oiref><oihard>
   @__modelType reference 
   */
  @@ -54,18 +44,17 @@
   */
   class __options {
   }/**
  -@__positions 
<oigroup:<oiref:design#Class#id2p4gtcamcwfvycamcygzi.diagram:oiref>=155,1,90,72,1:oigroup>
  
-<oigroup:<oiref:java#Class#de.infor.ce.util.ObjectFactory.IllegalMappingException:oiref>=282,278,146,59,1:oigroup>
  
-<oigroup:<oiref:java#Class#de.infor.ce.util.ThreadPool:oiref>=263,173,160,261,1:oigroup>
  
-<oigroup:<oiref:java#Extends#de.infor.ce.util.ObjectFactory.IllegalMappingException#de.infor.ce.util.ObjectFactory.FactoryException:oiref>=163,248,235,255:oigroup>
  +@__positions 
<oigroup:<oiref:java#Class#de.infor.ce.thread.ThreadPool:oiref>=263,173,160,261,1:oigroup>
  
+<oigroup:<oiref:design#Class#id2p4gtcamcwfvycamcygzi.diagram:oiref>=155,1,90,72,1:oigroup>
  +
  +
   <oigroup:<oiref:java#Class#de.infor.ce.util.URN:oiref>=471,227,218,214,1:oigroup>
  
-<oigroup:<oiref:java#Class#de.infor.ce.util.ObjectFactory.FactoryException:oiref>=235,242,107,77,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#de.infor.ce.util.ObjectFactory#defaultObjectFactory:oiref>=395,315,395,362,479,362,479,278,432,278:oigroup>
  +
  +
   
<oigroup:MemberLink#<oiref:java#Member#de.infor.ce.util.Component#parent:oiref>=669,329,669,379,759,379,759,289,709,289:oigroup>
   
<oigroup:<oiref:java#Class#de.infor.ce.util.Environment:oiref>=256,19,203,258,1:oigroup>
   
<oigroup:<oiref:java#Class#de.infor.ce.util.Component:oiref>=506,68,203,261,1:oigroup>
  
-<oigroup:<oiref:java#Class#de.infor.ce.util.ObjectFactory:oiref>=40,143,203,223,1:oigroup>
  
-<oigroup:MemberLink#<oiref:java#Member#de.infor.ce.util.ObjectFactory#objectFactory:oiref>=203,366,203,416,293,416,293,326,243,326:oigroup>
  +
   */
   class __positions {
   }
  
  
  

Reply via email to