Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Javadoc changes

  • Loading branch information...
commit 87fc6aca61584d7da7b42da9de476e6de9f48552 1 parent e9be61c
@TheNavigateur TheNavigateur authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 factory/src/main/java/org/prevayler/PrevaylerFactory.java
View
7 factory/src/main/java/org/prevayler/PrevaylerFactory.java
@@ -6,7 +6,6 @@
package org.prevayler;
import java.io.IOException;
-import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -95,7 +94,7 @@ public PrevaylerFactory(){}
/** Creates a Prevayler that will use a directory called "PrevalenceBase" under the current directory to read and write its .snapshot and .journal files, using standard Java serialization. This requires that the Prevalent System and all Transaction implementations used by the Prevayler are Java-Serializable.
* @param newPrevalentSystem The newly started, "empty" prevalent system that will be used as a starting point for every system startup, until the first snapshot is taken.
- * @see #createPrevayler(Serializable, String)
+ * @see #createPrevayler(Object, String)
*/
public static <P> Prevayler<P> createPrevayler(P newPrevalentSystem) throws Exception {
return createPrevayler(newPrevalentSystem, "PrevalenceBase");
@@ -104,7 +103,7 @@ public PrevaylerFactory(){}
/** Creates a Prevayler that will execute Transactions WITHOUT writing them to disk. Snapshots will work as "checkpoints" for the system, therefore. This is useful for stand-alone applications that have a "Save" button, for example. The Prevayler will use standard Java serialization for reading and writing its .snapshot files, which requires that the Prevalent System is Java-Serializable.
* @param newPrevalentSystem The newly started, "empty" prevalent system that will be used as a starting point for every system startup, until the first snapshot is taken.
* @param snapshotDirectory The directory where the .snapshot files will be read and written.
- * @see #createPrevayler(Serializable, String)
+ * @see #createPrevayler(Object, String)
*/
public static <P> Prevayler<P> createCheckpointPrevayler(P newPrevalentSystem, String snapshotDirectory) {
PrevaylerFactory<P> factory = new PrevaylerFactory<P>();
@@ -123,7 +122,7 @@ public PrevaylerFactory(){}
*
* Attempts to take snapshots on this transient Prevayler will throw an IOException.
* @param newPrevalentSystem The newly started, "empty" prevalent system.
- * @see #createCheckpointPrevayler(Serializable, String)
+ * @see #createCheckpointPrevayler(Object, String)
*/
public static <P> Prevayler<P> createTransientPrevayler(P newPrevalentSystem) {
PrevaylerFactory<P> factory = new PrevaylerFactory<P>();
Please sign in to comment.
Something went wrong with that request. Please try again.