|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPackager
Interface for all packager implementations
Method Summary | |
---|---|
void |
addConfigurationInformation(XMLElement data)
Adds configuration information to the packager. |
void |
addCustomJar(CustomData ca,
java.net.URL url)
Add a custom data like custom actions, where order is important. |
void |
addInstallerRequirements(java.util.List<InstallerRequirement> conditions)
|
void |
addJarContent(java.net.URL jarURL)
Adds a jar file content to the installer. |
void |
addJarContent(java.net.URL jarURL,
java.util.List<java.lang.String> files)
Adds a jar file content to the installer. |
void |
addLangPack(java.lang.String iso3,
java.net.URL xmlURL,
java.net.URL flagURL)
Adds a language pack. |
void |
addNativeLibrary(java.lang.String name,
java.net.URL url)
Adds a native library. |
void |
addNativeUninstallerLibrary(CustomData data)
Marks a native library to be added to the uninstaller. |
void |
addPack(PackInfo pack)
Adds a pack, order is mostly irrelevant. |
void |
addPanelJar(Panel panel,
java.net.URL jarURL)
Add a panel, where order is important. |
void |
addResource(java.lang.String resId,
java.net.URL url)
Adds a resource. |
void |
createInstaller(java.io.File primaryFile)
Create the installer, beginning with the specified jar. |
PackCompressor |
getCompressor()
Returns the current pack compressor |
java.util.Map<java.lang.String,java.util.List<DynamicVariable>> |
getDynamicVariables()
Returns a map of dynamically refreshed variables |
PackagerListener |
getPackagerListener()
Get the PackagerListener. |
java.util.List<PackInfo> |
getPacksList()
Gets the packages list |
java.util.Map<java.lang.String,Condition> |
getRules()
|
java.util.Properties |
getVariables()
Allows access to add, remove and update the variables for the project, which are maintained in the packager. |
void |
initPackCompressor(java.lang.String compr_format,
int compr_level)
Initializes a pack compressor if supported by the packager |
void |
setDynamicVariables(java.util.Map<java.lang.String,java.util.List<DynamicVariable>> dynamicvariables)
|
void |
setGUIPrefs(GUIPrefs prefs)
Sets the GUI preferences. |
void |
setInfo(Info info)
Sets the informations related to this installation. |
void |
setPackagerListener(PackagerListener listener)
Adds a listener. |
void |
setRules(java.util.Map<java.lang.String,Condition> rules)
|
Method Detail |
---|
void createInstaller(java.io.File primaryFile) throws java.lang.Exception
java.lang.Exception
PackagerListener getPackagerListener()
void setPackagerListener(PackagerListener listener)
listener
- The listener.void setInfo(Info info) throws java.lang.Exception
info
- The info section.
java.lang.Exception
- Description of the Exceptionvoid setGUIPrefs(GUIPrefs prefs)
prefs
- The new gUIPrefs valuejava.util.Properties getVariables()
void addPanelJar(Panel panel, java.net.URL jarURL)
void addCustomJar(CustomData ca, java.net.URL url)
ca
- custom action objecturl
- the URL to include oncevoid addPack(PackInfo pack)
pack
- contains all the files and items that go with a packjava.util.List<PackInfo> getPacksList()
void addLangPack(java.lang.String iso3, java.net.URL xmlURL, java.net.URL flagURL)
iso3
- The ISO3 code.xmlURL
- The location of the xml local infoflagURL
- The location of the flag image resourcevoid addResource(java.lang.String resId, java.net.URL url)
resId
- The resource Id.url
- The location of the datavoid addNativeLibrary(java.lang.String name, java.net.URL url) throws java.lang.Exception
name
- The native library name.url
- The url to get the data from.
java.lang.Exception
- Description of the Exceptionvoid addJarContent(java.net.URL jarURL)
jarURL
- The url of the jar to add to the installer. We use a URL so the jar may be
nested within another.void addJarContent(java.net.URL jarURL, java.util.List<java.lang.String> files)
jarURL
- The url of the jar to add to the installer. We use a URL so the jar may be
nested within another.files
- to be copiedvoid addNativeUninstallerLibrary(CustomData data)
data
- the describing custom action data objectvoid addInstallerRequirements(java.util.List<InstallerRequirement> conditions)
PackCompressor getCompressor()
void initPackCompressor(java.lang.String compr_format, int compr_level) throws CompilerException
compr_format
- compr_level
-
CompilerException
void addConfigurationInformation(XMLElement data)
data
- - the xml-element packaging from the install.xmljava.util.Map<java.lang.String,Condition> getRules()
void setRules(java.util.Map<java.lang.String,Condition> rules)
rules
- the rules to setjava.util.Map<java.lang.String,java.util.List<DynamicVariable>> getDynamicVariables()
void setDynamicVariables(java.util.Map<java.lang.String,java.util.List<DynamicVariable>> dynamicvariables)
dynamicvariables
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |