- java.lang.Object
-
- com.oracle.tools.packager.AbstractBundler
-
- All Implemented Interfaces:
Bundler
- Direct Known Subclasses:
AbstractImageBundler
public abstract class AbstractBundler extends Object implements Bundler
-
-
Field Summary
Fields Modifier and Type Field Description protected Class
baseResourceLoader
static String
BUNDLER_PREFIX
static BundlerParamInfo<File>
IMAGES_ROOT
-
Constructor Summary
Constructors Constructor Description AbstractBundler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(Map<String,? super Object> params)
Removes temporary files that are used for bundling.protected void
fetchResource(String publicName, String category, File defaultFile, File result, boolean verbose, File publicRoot)
protected void
fetchResource(String publicName, String category, String defaultName, File result, boolean verbose, File publicRoot)
protected String
preprocessTextResource(String publicName, String category, String defaultName, Map<String,String> pairs, boolean verbose, File publicRoot)
String
toString()
Returns a string representation of the object.-
Methods inherited from interface com.oracle.tools.packager.Bundler
execute, getBundleParameters, getBundleType, getDescription, getID, getName, validate
-
-
-
-
Field Detail
-
IMAGES_ROOT
public static final BundlerParamInfo<File> IMAGES_ROOT
-
BUNDLER_PREFIX
public static final String BUNDLER_PREFIX
- See Also:
- Constant Field Values
-
baseResourceLoader
protected Class baseResourceLoader
-
-
Method Detail
-
fetchResource
protected void fetchResource(String publicName, String category, String defaultName, File result, boolean verbose, File publicRoot) throws IOException
- Throws:
IOException
-
fetchResource
protected void fetchResource(String publicName, String category, File defaultFile, File result, boolean verbose, File publicRoot) throws IOException
- Throws:
IOException
-
preprocessTextResource
protected String preprocessTextResource(String publicName, String category, String defaultName, Map<String,String> pairs, boolean verbose, File publicRoot) throws IOException
- Throws:
IOException
-
toString
public String toString()
Description copied from class:Object
Returns a string representation of the object. In general, thetoString
method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.The
toString
method for classObject
returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@
', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:getClass().getName() + '@' + Integer.toHexString(hashCode())
-
-