[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/install/sword s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Tue Mar 22 19:05:40 MST 2005


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install/sword
In directory www.crosswire.org:/tmp/cvs-serv26577/java/jsword/org/crosswire/jsword/book/install/sword

Modified Files:
	AbstractSwordInstaller.java 
Log Message:
Made BookDriver a singleton with an instance() method which is used by reflection in Books to get an instance of a particular BookDriver.
Made registerDriver also re-register the driver.

Index: AbstractSwordInstaller.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/install/sword/AbstractSwordInstaller.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** AbstractSwordInstaller.java	22 Mar 2005 12:40:03 -0000	1.10
--- AbstractSwordInstaller.java	23 Mar 2005 02:05:38 -0000	1.11
***************
*** 246,250 ****
          // We need a sword book driver so the installer can use the driver
          // name to use in deciding where to put the index.
!         BookDriver fake = new SwordBookDriver();
  
          entries.clear();
--- 246,250 ----
          // We need a sword book driver so the installer can use the driver
          // name to use in deciding where to put the index.
!         BookDriver fake = SwordBookDriver.instance();
  
          entries.clear();



More information about the jsword-svn mailing list