< prev index next >
src/jdk.incubator.jpackage/share/classes/jdk/incubator/jpackage/internal/Bundler.java
Print this page
@@ -21,11 +21,11 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-package jdk.jpackage.internal;
+package jdk.incubator.jpackage.internal;
import java.io.File;
import java.util.Collection;
import java.util.Map;
@@ -39,45 +39,32 @@
* @return User Friendly name of this bundler.
*/
String getName();
/**
- * @return A more verbose description of the bundler.
- */
- String getDescription();
-
- /**
* @return Command line identifier of the bundler. Should be unique.
*/
String getID();
/**
* @return The bundle type of the bundle that is created by this bundler.
*/
String getBundleType();
/**
- * The parameters that this bundler uses to generate it's bundle.
- * @return immutable collection
- */
- Collection<BundlerParamInfo<?>> getBundleParameters();
-
- /**
* Determines if this bundler will execute with the given parameters.
*
* @param params The parameters to be validate. Validation may modify
* the map, so if you are going to be using the same map
* across multiple bundlers you should pass in a deep copy.
* @return true if valid
- * @throws UnsupportedPlatformException If the bundler cannot run on this
- * platform (i.e. creating mac apps on windows)
* @throws ConfigException If the configuration params are incorrect. The
* exception may contain advice on how to modify the params map
* to make it valid.
*/
public boolean validate(Map<String, ? super Object> params)
- throws UnsupportedPlatformException, ConfigException;
+ throws ConfigException;
/**
* Creates a bundle from existing content.
*
* If a call to {@link #validate(java.util.Map)} date} returns true with
@@ -85,11 +72,11 @@
* However if an exception was thrown out of validate or it returned
* false then you should not expect sensible results from this call.
* It may or may not return a value, and it may or may not throw an
* exception. But any output should not be considered valid or sane.
*
- * @param params The parameters as specified by getBundleParameters.
+ * @param params The Bundle parameters,
* Keyed by the id from the ParamInfo. Execution may
* modify the map, so if you are going to be using the
* same map across multiple bundlers you should pass
* in a deep copy.
* @param outputParentDir
@@ -128,6 +115,11 @@
/**
* Returns "true" if this bundler is supported on current platform.
*/
public boolean supported(boolean runtimeInstaller);
+
+ /**
+ * Returns "true" if this bundler is he default for the current platform.
+ */
+ public boolean isDefault();
}
< prev index next >