ruper2/src/java/core/org/krysalis/ruper2 StandardResourceUpdater.java,1.3,1.4 RuperRuntimeException.java,1.1,1.2 ResourceUpdater.java,1.14,1.15 DefaultResourceUpdater.java,1.3,1.4 RuperException.java,1.1,1.2 FileUpdater.java,1.3,1.4

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2
In directory sc8-pr-cvs1:/tmp/cvs-serv6983/src/java/core/org/krysalis/ruper2

Modified Files:
	StandardResourceUpdater.java RuperRuntimeException.java 
	ResourceUpdater.java DefaultResourceUpdater.java 
	RuperException.java FileUpdater.java 
Log Message:
Final commit, before I check out & prepare for move to Apache.

Index: StandardResourceUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/StandardResourceUpdater.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** StandardResourceUpdater.java	10 Oct 2003 21:26:23 -0000	1.3
--- StandardResourceUpdater.java	4 Dec 2003 20:56:27 -0000	1.4
***************
*** 4,16 ****
  package org.krysalis.ruper2;
  
  import org.krysalis.ruper2.impl.ResourceUpdaterIdentifier;
  
- 
  /**
   * @author arb_jack
   */
  public class StandardResourceUpdater extends DefaultResourceUpdater {
  
- 
  	/**
  	 * @param id
--- 4,19 ----
  package org.krysalis.ruper2;
  
+ import org.krysalis.ruper2.config.RuperConfig;
  import org.krysalis.ruper2.impl.ResourceUpdaterIdentifier;
  
  /**
+  * A StandardResourceUpdater is a {@link org.krysalis.ruper2.DefaultResourceUpdater }
+  * that configures itself from an XML configuration file.
+  * 
+  * 
   * @author arb_jack
   */
  public class StandardResourceUpdater extends DefaultResourceUpdater {
  
  	/**
  	 * @param id
***************
*** 19,23 ****
  	public StandardResourceUpdater(String id) throws RuperException {
  		super(id);
! 		// TODO Auto-generated constructor stub
  	}
  
--- 22,26 ----
  	public StandardResourceUpdater(String id) throws RuperException {
  		super(id);
! 		initClass();
  	}
  
***************
*** 29,33 ****
  		throws RuperException {
  		super(id);
! 		// TODO Auto-generated constructor stub
  	}
  
--- 32,36 ----
  		throws RuperException {
  		super(id);
! 		initClass();
  	}
  
***************
*** 37,42 ****
  	public StandardResourceUpdater() throws RuperException {
  		super();
! 		// TODO Auto-generated constructor stub
  	}
- 
  }
--- 40,50 ----
  	public StandardResourceUpdater() throws RuperException {
  		super();
! 		initClass();
! 	}
! 	
! 	private void initClass() {
! 		// Configure from the XML file...
! 		//:TODO: *Maybe* move later, or allow user to pass filename
! 		RuperConfig.configure("standard.xml");
  	}
  }

Index: RuperRuntimeException.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/RuperRuntimeException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RuperRuntimeException.java	29 Sep 2003 18:09:21 -0000	1.1
--- RuperRuntimeException.java	4 Dec 2003 20:56:27 -0000	1.2
***************
*** 19,23 ****
  
      /**
!      * @param arg0
       */
      public RuperRuntimeException(final String message) {
--- 19,23 ----
  
      /**
!      * @param message the user message
       */
      public RuperRuntimeException(final String message) {
***************
*** 26,31 ****
  
      /**
!      * @param message
!      * @param arg1
       */
  	public RuperRuntimeException(
--- 26,31 ----
  
      /**
!      * @param message the user messsage
!      * @param throwable the cause
       */
  	public RuperRuntimeException(
***************
*** 36,40 ****
  
      /**
!      * @param message
       */
      public RuperRuntimeException(final Throwable throwable) {
--- 36,40 ----
  
      /**
!      * @param throwable the cause
       */
      public RuperRuntimeException(final Throwable throwable) {

Index: ResourceUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/ResourceUpdater.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ResourceUpdater.java	22 Nov 2003 00:16:16 -0000	1.14
--- ResourceUpdater.java	4 Dec 2003 20:56:27 -0000	1.15
***************
*** 37,40 ****
--- 37,44 ----
  
  /**
+  * A ResourceUpdater is the main (low level) API into Ruper.
+  * 
+  * @see FileUpdater, DefaultResourceUpdater, StandardResourceUpdater
+  * 
   * @author anou_mana
   */
***************
*** 42,52 ****
  
  	static {
! 		// Configure from the XML file...
  		//:TODO: *Maybe* move later, or allow user to pass filename
  		RuperConfig.configure();
  	}
  
  	// The identity...
! 	ResourceUpdaterIdentifier m_identifier = null;
  
  	// Options for configuring the Ruper
--- 46,57 ----
  
  	static {
! 		// Configure from the shared XML file...
  		//:TODO: *Maybe* move later, or allow user to pass filename
+ 		// in order to override
  		RuperConfig.configure();
  	}
  
  	// The identity...
! 	private ResourceUpdaterIdentifier m_identifier = null;
  
  	// Options for configuring the Ruper
***************
*** 117,121 ****
  
  	/**
! 	* 
  	*/
  	public ResourceUpdater() throws RuperException {
--- 122,126 ----
  
  	/**
! 	* Construct a default ruper
  	*/
  	public ResourceUpdater() throws RuperException {
***************
*** 215,219 ****
  
  	/* (non-Javadoc)
- 	 * @see org.krysalis.ruper2.api.ResourceAPIInterface#updateResource(org.krysalis.ruper2.resource.Resource)
  	 */
  	public void updateResource(Resource resource) throws RuperException {
--- 220,223 ----
***************
*** 222,226 ****
  
  	/* (non-Javadoc)
- 	 * @see org.krysalis.ruper2.api.ResourceAPIInterface#updateResource(org.krysalis.ruper2.resource.Resource)
  	 */
  	public void updateResource(Resource resource, IRepository targetRepository)
--- 226,229 ----
***************
*** 243,247 ****
  
  	/* (non-Javadoc)
- 	 * @see org.krysalis.ruper2.api.ResourceAPIInterface#updateGroup(org.krysalis.ruper2.resource.ResourceGroup)
  	 */
  	public void updateResourceGroup(ResourceGroup group)
--- 246,249 ----
***************
*** 251,255 ****
  
  	/* (non-Javadoc)
- 	 * @see org.krysalis.ruper2.api.ResourceAPIInterface#updateGroup(org.krysalis.ruper2.resource.ResourceGroup)
  	 */
  	public void updateResourceGroup(
--- 253,256 ----
***************
*** 259,263 ****
  
  		if (group != null) {
- 
  			// get the resource specifier query
  			ResourceQuery resourceQuery =
--- 260,263 ----

Index: DefaultResourceUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/DefaultResourceUpdater.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** DefaultResourceUpdater.java	10 Oct 2003 21:26:23 -0000	1.3
--- DefaultResourceUpdater.java	4 Dec 2003 20:56:27 -0000	1.4
***************
*** 7,11 ****
--- 7,17 ----
  
  
+ 
  /**
+  * A DefaultResourceUpdater is a {@link org.krysalis.ruper2.ResourceUpdater} with the
+  * default settings selected.
+  * 
+  * @see FileUpdater, DefaultResourceUpdater, StandardResourceUpdater
+  * 
   * @author arb_jack
   */

Index: RuperException.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/RuperException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RuperException.java	29 Sep 2003 18:09:21 -0000	1.1
--- RuperException.java	4 Dec 2003 20:56:27 -0000	1.2
***************
*** 6,32 ****
  /**
   * @author $Author$
!  * @version $Revision$ 
   */
  public class RuperException extends PortableException {
  
  	/**
! 	 * @param arg0
  	 */
! 	public RuperException(String message) {
  		super(message);
  	}
  
  	/**
! 	 * @param message
! 	 * @param arg1
  	 */
! 	public RuperException(String message, Throwable throwable) {
  		super(message, throwable);
  	}
  
  	/**
! 	 * @param message
  	 */
! 	public RuperException(Throwable throwable) {
  		super(throwable);
  	}
--- 6,32 ----
  /**
   * @author $Author$
!  * @version $Revision$
   */
  public class RuperException extends PortableException {
  
  	/**
! 	 * @param message the user message
  	 */
! 	public RuperException(final String message) {
  		super(message);
  	}
  
  	/**
! 	 * @param message the user message
! 	 * @param throwable the cause
  	 */
! 	public RuperException(final String message, final Throwable throwable) {
  		super(message, throwable);
  	}
  
  	/**
! 	 * @param throwable the cause
  	 */
! 	public RuperException(final Throwable throwable) {
  		super(throwable);
  	}

Index: FileUpdater.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper2/FileUpdater.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FileUpdater.java	22 Oct 2003 02:14:08 -0000	1.3
--- FileUpdater.java	4 Dec 2003 20:56:27 -0000	1.4
***************
*** 29,32 ****
--- 29,39 ----
  
  /**
+  * 
+  * A FileUpdater combines a FileAssistant (resolving files) with a
+  * ResourceUpdate (vanilla, standard or default)
+  *  
+  * @see FileUpdater, DefaultResourceUpdater, StandardResourceUpdater
+  * @see FileAssistant
+  * 
   * @author arb_jack
   */
***************
*** 34,40 ****
  	private ResourceUpdater m_ruper = null;
  	private FileAssistant m_filer = null;
! 	
  	/**
! 	 * 
  	 */
  	public FileUpdater() throws RuperException {
--- 41,47 ----
  	private ResourceUpdater m_ruper = null;
  	private FileAssistant m_filer = null;
! 
  	/**
! 	 * @throws RuperException -- failed to construct
  	 */
  	public FileUpdater() throws RuperException {
***************
*** 45,52 ****
  	/**
  	* 
  	*/
     public FileUpdater(
! 	   FileAssistant filer,
! 	   ResourceUpdater ruper) {
  	   m_ruper = ruper;
  	   m_filer = filer;
--- 52,60 ----
  	/**
  	* 
+ 	* @param filer file assistent
  	*/
     public FileUpdater(
! 	   final FileAssistant filer,
! 	   final ResourceUpdater ruper) {
  	   m_ruper = ruper;
  	   m_filer = filer;




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.