Installation is a combination metadata and installation flags for
a particular component. Typical Usage Inside a Component:
Creating an Installation Options:
InstallationOptions returnOptions = new InstallationOptions();
InstallationMetadata newMetadata = returnOptions.createNewMetadata();
newMetadata.setName("Test");
newMetadata.setDefaultValue(Boolean.TRUE);
newMetadata.setType("java.lang.Boolean");
returnOptions.addMetaData(newMetadata);
return returnOptions;
Using Installation Options:
//In the installation section
Boolean deleteTables = installOptions.getInstallOption("Test");
if (deleteTables.booleanValue()) {
//Do some stuff
}
author: Michael Rimov |