You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ni...@apache.org on 2003/12/17 11:13:53 UTC

cvs commit: avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common GenericSchemeDescriptor.java SimpleRepositoryRegistry.java URNDescriptorImpl.java

niclas      2003/12/17 02:13:53

  Modified:    ide/org.apache.avalon.ide.eclipse.repository .classpath
                        .project
               ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository
                        RepositoryTypeRegistry.java
               ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common
                        SimpleRepositoryRegistry.java
  Added:       ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository
                        InvalidSchemeException.java
                        RepositorySchemeDescriptor.java
               ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common
                        GenericSchemeDescriptor.java
  Removed:     ide/org.apache.avalon.ide.eclipse.repository/doc schema.css
               ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository
                        InvalidURNException.java URNDescriptor.java
               ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common
                        URNDescriptorImpl.java
  Log:
  Trying to restore the order that existed before the disaster.
  
  Revision  Changes    Path
  1.3       +1 -0      avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.classpath
  
  Index: .classpath
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.classpath,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- .classpath	4 Dec 2003 03:00:05 -0000	1.2
  +++ .classpath	17 Dec 2003 10:13:52 -0000	1.3
  @@ -4,5 +4,6 @@
       <classpathentry kind="src" path="src/java"/>
       <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
  +    <classpathentry kind="src" path="/org.apache.avalon.ide.repository"/>
       <classpathentry kind="output" path="build"/>
   </classpath>
  
  
  
  1.3       +1 -0      avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.project
  
  Index: .project
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.eclipse.repository/.project,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- .project	4 Dec 2003 03:00:05 -0000	1.2
  +++ .project	17 Dec 2003 10:13:53 -0000	1.3
  @@ -3,6 +3,7 @@
   	<name>org.apache.avalon.ide.eclipse.repository</name>
   	<comment></comment>
   	<projects>
  +		<project>org.apache.avalon.ide.repository</project>
   	</projects>
   	<buildSpec>
   		<buildCommand>
  
  
  
  1.5       +5 -5      avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/RepositoryTypeRegistry.java
  
  Index: RepositoryTypeRegistry.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/RepositoryTypeRegistry.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RepositoryTypeRegistry.java	17 Dec 2003 09:35:34 -0000	1.4
  +++ RepositoryTypeRegistry.java	17 Dec 2003 10:13:53 -0000	1.5
  @@ -107,7 +107,7 @@
        * 
        * @return A string array filled with the URNs that has been registered.
        */
  -    URNDescriptor[] getRegisteredURNs();
  +    RepositorySchemeDescriptor[] getRegisteredURNs();
       
       /** Returns the URNDescriptor registered under the type name.
        * 
  @@ -118,7 +118,7 @@
        * @param type The type of the urn to be looked up.
        * @return
        */
  -    URNDescriptor findByType( String type );
  +    RepositorySchemeDescriptor findByType( String type );
       
       /** Returns the RepositoryAgentFactory registered with the given URN.
        * 
  @@ -127,7 +127,7 @@
        * @throws InvalidURNException If there is no RepositoryAgentFactory registered at that
        * URN.
        */
  -    RepositoryAgentFactory getRepositoryAgentFactory( URNDescriptor urn );
  +    RepositoryAgentFactory getRepositoryAgentFactory( RepositorySchemeDescriptor urn );
       
       /** Registers a RepositoryAgentFactory to a particular URN.
        * 
  @@ -136,13 +136,13 @@
        * @param agentFactory The RepositoryAgentFactory to be registered.
        * 
        */
  -    void registerRepositoryAgentFactory( URNDescriptor urn, RepositoryAgentFactory agentFactory );
  +    void registerRepositoryAgentFactory( RepositorySchemeDescriptor urn, RepositoryAgentFactory agentFactory );
       
       /** Unregister a URN.
        * 
        * @param urn The URN to be un-registered from the RepositoryTypeRegistry.
        */
  -    void unregisterRepositoryAgentFactory( URNDescriptor urn );
  +    void unregisterRepositoryAgentFactory( RepositorySchemeDescriptor urn );
       
       /** Adds a RepositoryRegistryListener.
        * 
  
  
  
  1.3       +0 -0      avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/InvalidSchemeException.java
  
  
  
  
  1.3       +0 -0      avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/RepositorySchemeDescriptor.java
  
  
  
  
  1.5       +11 -11    avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common/SimpleRepositoryRegistry.java
  
  Index: SimpleRepositoryRegistry.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common/SimpleRepositoryRegistry.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SimpleRepositoryRegistry.java	17 Dec 2003 09:35:34 -0000	1.4
  +++ SimpleRepositoryRegistry.java	17 Dec 2003 10:13:53 -0000	1.5
  @@ -57,7 +57,7 @@
   import org.apache.avalon.ide.repository.RepositoryTypeRegistry;
   import org.apache.avalon.ide.repository.RepositoryTypeRegistryEvent;
   import org.apache.avalon.ide.repository.RepositoryTypeRegistryListener;
  -import org.apache.avalon.ide.repository.URNDescriptor;
  +import org.apache.avalon.ide.repository.RepositorySchemeDescriptor;
   
   /**
    * @author Niclas Hedhman, niclas@hedhman.org
  @@ -83,14 +83,14 @@
        * 
        * @return A string array filled with the URNs that has been registered.
        */
  -    public URNDescriptor[] getRegisteredURNs()
  +    public RepositorySchemeDescriptor[] getRegisteredURNs()
       {
           synchronized( this )
           {
  -            URNDescriptor[] result = new URNDescriptor[ m_Registrations.size() ];
  +            RepositorySchemeDescriptor[] result = new RepositorySchemeDescriptor[ m_Registrations.size() ];
               Iterator list = m_Registrations.keySet().iterator();
               for( int i=0 ; list.hasNext() ; i++ )
  -                result[i] = (URNDescriptor) list.next();
  +                result[i] = (RepositorySchemeDescriptor) list.next();
               return result;
           }
       }
  @@ -104,10 +104,10 @@
        * @param location The location containing the type of the urn to be looked up.
        * @return
        */
  -    public URNDescriptor findByType( String location )
  +    public RepositorySchemeDescriptor findByType( String location )
       {
           String type = normalize( location );
  -        return (URNDescriptor) m_URNTypes.get( type );
  +        return (RepositorySchemeDescriptor) m_URNTypes.get( type );
       }
   
       /** Returns the RepositoryAgentFactory registered with the given URN.
  @@ -117,7 +117,7 @@
        * @throws InvalidURNException If there is no RepositoryAgentFactory registered at that
        * URN.
        */
  -    public RepositoryAgentFactory getRepositoryAgentFactory( URNDescriptor urn )
  +    public RepositoryAgentFactory getRepositoryAgentFactory( RepositorySchemeDescriptor urn )
       {
           synchronized( this )
           {        
  @@ -136,7 +136,7 @@
        * @exception InvalidURNException if the URN parameter is in invalid format or is already 
        * in use.
        */
  -    public void registerRepositoryAgentFactory(URNDescriptor urn, RepositoryAgentFactory factory)
  +    public void registerRepositoryAgentFactory(RepositorySchemeDescriptor urn, RepositoryAgentFactory factory)
       {
           if (m_Registrations.get(urn) != null)
               return;
  @@ -144,7 +144,7 @@
           Iterator list;
           synchronized (this)
           {
  -            m_URNTypes.put( urn.getURN(), urn );
  +            m_URNTypes.put( urn.getScheme(), urn );
               m_Registrations.put(urn, factory);
               list = m_Listeners.iterator();
           }
  @@ -168,14 +168,14 @@
        * 
        * @param urn The URN to be un-registered from the RepositoryTypeRegistry.
        */
  -    public void unregisterRepositoryAgentFactory( URNDescriptor urn )
  +    public void unregisterRepositoryAgentFactory( RepositorySchemeDescriptor urn )
       {
           Iterator list;
           RepositoryAgentFactory factory;
           synchronized (this)
           {
               factory = (RepositoryAgentFactory) m_Registrations.get(urn);
  -            m_URNTypes.remove( urn.getURN() );
  +            m_URNTypes.remove( urn.getScheme() );
               if (factory == null)
                   return;
               list = m_Listeners.iterator();
  
  
  
  1.3       +0 -0      avalon-sandbox/ide/org.apache.avalon.ide.repository/src/java/org/apache/avalon/ide/repository/tools/common/GenericSchemeDescriptor.java
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org