diff --git a/src/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java b/src/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java index 21d3fd0c6d..c80280bcf1 100644 --- a/src/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java +++ b/src/java/org/apache/poi/ss/formula/CollaboratingWorkbooksEnvironment.java @@ -24,19 +24,21 @@ import java.util.Iterator; import java.util.Map; import java.util.Set; +import org.apache.poi.util.Internal; /** - * Manages a collection of {@link WorkbookEvaluator}s, in order to support evaluation of formulas - * across spreadsheets.
+ * Manages a collection of {@link WorkbookEvaluator}s, in order to support + * evaluation of formulas across spreadsheets. * - * For POI internal use only - * - * @author Josh Micich + *For POI internal use only - use
*/ +@Internal public final class CollaboratingWorkbooksEnvironment { public static final class WorkbookNotFoundException extends Exception { - WorkbookNotFoundException(String msg) { + private static final long serialVersionUID = 8787784539811167941L; + + WorkbookNotFoundException(String msg) { super(msg); } } @@ -51,6 +53,7 @@ public final class CollaboratingWorkbooksEnvironment { _evaluatorsByName = Collections.emptyMap(); _evaluators = new WorkbookEvaluator[0]; } + public static void setup(String[] workbookNames, WorkbookEvaluator[] evaluators) { int nItems = workbookNames.length; if (evaluators.length != nItems) { @@ -62,30 +65,47 @@ public final class CollaboratingWorkbooksEnvironment { } new CollaboratingWorkbooksEnvironment(workbookNames, evaluators, nItems); } + public static void setup(Map