You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2002/06/05 05:22:05 UTC

cvs commit: jakarta-avalon-apps/enterprise/orb/src/java/org/apache/orb ORB.java

mcconnell    2002/06/04 20:22:05

  Modified:    enterprise/orb .cvsignore build.xml
               enterprise/orb/src/java/org/apache/orb ORB.java
  Added:       enterprise/orb/src/idl corbaloc.idl
  Log:
  addition of corbaloc resources
  
  Revision  Changes    Path
  1.2       +1 -0      jakarta-avalon-apps/enterprise/orb/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/enterprise/orb/.cvsignore,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- .cvsignore	28 Feb 2002 18:23:46 -0000	1.1
  +++ .cvsignore	5 Jun 2002 03:22:05 -0000	1.2
  @@ -1,3 +1,4 @@
   build
   local.properties
   dist
  +checkstyle.cache
  \ No newline at end of file
  
  
  
  1.15      +28 -1     jakarta-avalon-apps/enterprise/orb/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/enterprise/orb/build.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- build.xml	29 May 2002 17:52:24 -0000	1.14
  +++ build.xml	5 Jun 2002 03:22:05 -0000	1.15
  @@ -76,6 +76,7 @@
     <property name="openorb.href"  value="" />
     <property name="openorb.src"  value="${src}" />
     <property name="openorb.build.src"  value="${src}" />
  +  <property name="idl.class"  value="org.openorb.compiler.IdlCompiler" />
   
   
     <path id="project.classpath">
  @@ -118,6 +119,7 @@
     <target name="orb.context" depends="prepare" >
       <mkdir dir="${build.dir}/orb" />
       <mkdir dir="${build.dir}/orb/src" />
  +    <mkdir dir="${build.dir}/corbaloc" />
       <mkdir dir="${build.dir}/orb/lib" />
     </target>
   
  @@ -132,10 +134,34 @@
         <srcfiles dir="${build.dir}/orb/src">
            <include name="org/apache/orb/**/*.*"/>
         </srcfiles>
  +      <srcfiles dir="${build.dir}/corbaloc">
  +         <include name="org/apache/orb/**/*.*"/>
  +      </srcfiles>
  +    </uptodate>
  +  </target>
  +
  +  <target name="idl.context" depends="orb.context">
  +    <uptodate property="corbaloc.idl.modified" targetfile="${idl}/corbaloc.idl">
  +      <srcfiles dir="${build.dir}/corbaloc">
  +	  <include name="**/*"/>
  +      </srcfiles>
       </uptodate>
     </target>
   
  -  <target name="orb" depends="orb.build.context" unless="orb.uptodate" >
  +  <target name="corbaloc.idl" depends="idl.context" if="corbaloc.idl.modified">
  +	<java failonerror="true" classname="${idl.class}" fork="true">
  +          <classpath>
  +		<path refid="project.classpath"/>
  +	    </classpath>
  +	    <arg line="-silence"/>
  +	    <arg line="-native URL java.net.URL"/>
  +	    <arg line="-d ${build.dir}/corbaloc"/>
  +	    <arg line="-I ${idl}"/>
  +	    <arg line="corbaloc.idl" />
  +      </java>
  +  </target>
  +
  +  <target name="orb" depends="corbaloc.idl,orb.build.context" unless="orb.uptodate" >
         <echo message="Building ORB Manager Implementation."/>
         <mkdir dir="${build.dir}/orb/lib"/>
         <javac debug="off" destdir="${build.dir}/orb/lib" deprecation="true" target="1.2">
  @@ -144,6 +170,7 @@
             <pathelement path="${build.dir}/orb/lib" />
   	  </classpath>
           <src path="${build.dir}/orb/src" />
  +        <src path="${build.dir}/corbaloc" />
           <src path="${src}/java" />
           <include name="org/apache/orb/**"/>
         </javac>
  
  
  
  1.1                  jakarta-avalon-apps/enterprise/orb/src/idl/corbaloc.idl
  
  Index: corbaloc.idl
  ===================================================================
  //
  // hello.idl
  //
  // Created on 13 February 2002
  // by Stephen McConnell <mc...@apache.org>
  //
  
  #ifndef _CORBALOC_IDL_
  #define _CORBALOC_IDL_
  #pragma prefix "orb.apache.org"
  
  module corbaloc
  {
  
     /**
      * Exception indicating the referral of the request to an 
      * alternative URL.
      */
      exception ServiceRedirection
      {
         /**
          * The path representing the external form of a redirection URL.
          */
          string path;
      };
  
     /**
      * Exception raised in response to an invalid query applied to 
      * a <code>Finder</code> implementation.
      */
      exception InvalidQuery
      {
         /**
          * The inital query.
          */
          string query;
  
         /**
          * A message detailing the cause of the invalid status.
          */
          string message;
      };
  
     /**
      * Exception raised in response to a request for a reference resolution
      * that cannot be fulfilled by a <code>Chooser</code> implementation.
      */
      exception UnknownReference
      {
         /**
          * The inital ref value.
          */
          string reference;
      };
  
     /**
      * Exception raised in response to a request for a reference resolution
      * that cannot be fulfilled due to an invalid reference value.
      */
      exception InvalidReference
      {
         /**
          * The inital ref value.
          */
          string reference;
  
         /**
          * A message detailing the cause of the invalid status.
          */
          string message;
      };
  
     /**
      * An abstract interface implemented by objects capable of handling
      * URL based queries.
      */
      abstract interface Finder
      {
         /**
          * Process a query based on a URL query syntax. A url of the 
          * form corbaloc::home.osm.net/gateway?connect=true%amp;value=3 will have 
          * a query element corresponding to <code>connect=true%amp;value=3</code>.
          * Query strings are composed of a sequence of query name value pairs
          * where each pair is delimited by the %amp; character.
          * 
          * @param query the query string
          * @return the query value
          * @exception InvalidQuery if the query is invalid
          * @exception ServiceRedirection if the query is being redirected
          */
          any resolve_query( in string query ) raises ( InvalidQuery, ServiceRedirection );
      };
  
     /**
      * An abstract interface implemented by objects capable of handling
      * URL based reference lookup.
      */
      abstract interface Chooser
      {
         /**
          * Process a query based on a URL ref syntax. A url of the 
          * form <code>corbaloc::home.osm.net/gateway#12345A</code> will have 
          * a ref element corresponding to <code>12345A</code>.
          * 
          * @param reference the ref string
          * @return the result of the reference selection
          * @exception UnknownReference if the supplied ref cannot be resolved
          * @exception ServiceRedirection if the ref reesolution is being redirected
          */
          any select( in string reference ) raises ( UnknownReference, InvalidReference, ServiceRedirection );
      };
  
  };
  
  #endif // _CORBALOC_IDL_
  
  
  
  1.6       +5 -0      jakarta-avalon-apps/enterprise/orb/src/java/org/apache/orb/ORB.java
  
  Index: ORB.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-apps/enterprise/orb/src/java/org/apache/orb/ORB.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ORB.java	14 May 2002 07:29:14 -0000	1.5
  +++ ORB.java	5 Jun 2002 03:22:05 -0000	1.6
  @@ -89,6 +89,11 @@
       */
       public static final String DEFAULT_ORB_SINGLETON = "org.openorb.CORBA.ORBSingleton";
   
  +   /**
  +    * The default key for this component.
  +    */
  +    public static final String KEY = "orb";
  +
       //=================================================================
       // state
       //=================================================================
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>