public class JNLPBundler extends AbstractBundler
baseResourceLoader, BUNDLER_PREFIX, IMAGES_ROOT
Constructor and Description |
---|
JNLPBundler() |
Modifier and Type | Method and Description |
---|---|
File |
execute(Map<String,? super Object> params,
File outputParentDir)
Creates a bundle from existing content.
|
Collection<BundlerParamInfo<?>> |
getBundleParameters()
The parameters that this bundler uses to generate it's bundle.
|
String |
getBundleType() |
String |
getDescription() |
String |
getID() |
String |
getName() |
boolean |
validate(Map<String,? super Object> params)
Determines if this bundler will execute with the given parameters.
|
fetchResource, fetchResource, preprocessTextResource, toString
public static final StandardBundlerParam<String> OUT_FILE
public static final StandardBundlerParam<Boolean> SWING_APP
public static final StandardBundlerParam<Boolean> INCLUDE_DT
public static final StandardBundlerParam<Boolean> EMBED_JNLP
public static final StandardBundlerParam<Boolean> EXTENSION
public static final StandardBundlerParam<Map<File,File>> TEMPLATES
public static final StandardBundlerParam<String> CODEBASE
public static final StandardBundlerParam<String> PLACEHOLDER
public static final StandardBundlerParam<Boolean> OFFLINE_ALLOWED
public static final StandardBundlerParam<Boolean> ALL_PERMISSIONS
public static final StandardBundlerParam<Integer> WIDTH
public static final StandardBundlerParam<Integer> HEIGHT
public static final StandardBundlerParam<String> EMBEDDED_WIDTH
public static final StandardBundlerParam<String> EMBEDDED_HEIGHT
public static final StandardBundlerParam<String> FALLBACK_APP
public static final StandardBundlerParam<String> UPDATE_MODE
public static final StandardBundlerParam<String> FX_PLATFORM
public static final StandardBundlerParam<String> JRE_PLATFORM
public static final StandardBundlerParam<List<Map<String,? super Object>>> ICONS
public static final StandardBundlerParam<Map<String,String>> APP_PARAMS
public static final StandardBundlerParam<Map<String,String>> ESCAPED_APPLET_PARAMS
public static final StandardBundlerParam<Map<String,String>> APPLET_PARAMS
public static final StandardBundlerParam<Map<String,String>> JS_CALLBACKS
public static final StandardBundlerParam<String> ICONS_HREF
public static final StandardBundlerParam<String> ICONS_KIND
public static final StandardBundlerParam<String> ICONS_WIDTH
public static final StandardBundlerParam<String> ICONS_HEIGHT
public static final StandardBundlerParam<String> ICONS_DEPTH
public String getName()
public String getDescription()
public String getID()
public String getBundleType()
public Collection<BundlerParamInfo<?>> getBundleParameters()
Bundler
public boolean validate(Map<String,? super Object> params) throws UnsupportedPlatformException, ConfigException
Bundler
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.UnsupportedPlatformException
- If the bundler cannot run on this
platform (i.e. creating mac apps on windows)ConfigException
- If the configuration params are incorrect. The
exception may contain advice on how to modify the params map
to make it valid.public File execute(Map<String,? super Object> params, File outputParentDir)
Bundler
Bundler.validate(java.util.Map)
date} returns true with the
parameters map, then you can expect a valid output. 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.params
- The parameters as specified by getBundleParameters.
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.outputParentDir
- The parent dir that the returned bundle will be placed in.Copyright © 2020. All rights reserved.