|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.modules.boot.LicenseHandler
This class has methods for displaying the EULA and saving the license acceptance acknowledgment.
Field Summary | |
static String |
ackFileName
|
static String |
ackJarName
|
static String |
ackLicenseName
|
static String |
defaultLicenseType
|
static String |
defaultLicenseVersion
|
static String |
licenseFileName
|
Constructor Summary | |
LicenseHandler(File muleHome)
Constructor for when we only know MULE_HOME This is the constructor that the GUI installer should use. |
|
LicenseHandler(File muleHome,
File muleBase)
Constructor for when we know both MULE_HOME and MULE_BASE This is the constructor used by MuleBootstrap |
Method Summary | |
boolean |
getAcceptance()
Display the EULA and get the user's acceptance. |
boolean |
licenseJarExists()
This method checks to see if there is a license jar file already. |
void |
saveLicenseAck(String licenseType,
String licenseVersion)
Saves the license acceptance acknowledgement file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static String defaultLicenseType
public static String defaultLicenseVersion
public static String ackJarName
public static String ackLicenseName
public static String ackFileName
public static String licenseFileName
Constructor Detail |
public LicenseHandler(File muleHome)
muleHome
- File pointing to MULE_HOMEpublic LicenseHandler(File muleHome, File muleBase)
muleHome
- File pointing to MULE_HOMEmuleBase
- File pointing to MULE_BASEMethod Detail |
public boolean getAcceptance()
public void saveLicenseAck(String licenseType, String licenseVersion) throws Exception
For now, the acknowlegment file is license.props and contains:
licenseType
- type of license - for now, should be just MuleSource Public
LicenselicenseVersion
- version of license - for now, should be 1.1.3
Exception
- if there is nowhere to write the file or somehow the jar
creation fails (disk full, etc.)public boolean licenseJarExists()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |