org.mule.module.boot
Class LicenseHandler
java.lang.Object
org.mule.module.boot.LicenseHandler
public final class LicenseHandler
- extends Object
This class has methods for displaying the EULA and saving the license acceptance
acknowledgment.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isLicenseAccepted
public static boolean isLicenseAccepted()
throws Exception
- Throws:
Exception
getLicenseFile
public static File getLicenseFile()
getAcceptance
public static boolean getAcceptance()
- Display the EULA and get the user's acceptance. Note that only a missing
license file or a non-yes answer will cause this to return false. If the user
accepts, but we can't write the license ack file for some reason, we'll still
return true.
- Returns:
- boolean whether the license was accepted or not
saveLicenseInfo
public static void saveLicenseInfo(LicenseHandler.LicenseInfo licenseInfo)
throws Exception
- Throws:
Exception
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.