|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.platform.LicenseManagerFactory
public class LicenseManagerFactory
Simple service factory interface. This factory includes creation methods since the license is loaded by other tools outside the standard service management framework.
| Constructor Summary | |
|---|---|
LicenseManagerFactory()
|
|
| Method Summary | |
|---|---|
static LicenseManager |
getInstance()
Access the currently configured LicenseManager for the system |
static LicenseManager |
newInstance(java.io.File licenseFile)
Returns an instance of LicenseManager initialized with the specified file. |
static LicenseManager |
newInstance(java.io.File licenseFile,
boolean validate)
Returns an instance of LicenseManager initialized with the specified file. |
static LicenseManager |
newInstance(java.io.InputStream licenseStream,
boolean validate)
Returns an instance of LicenseManager initialized with the specified stream. |
static LicenseManager |
newInstance(java.lang.String productName,
java.lang.String clientId,
java.lang.String productOwnedId,
License[] licenses,
java.lang.String key)
Creates a new instance of the license manager based on the information passed in. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LicenseManagerFactory()
| Method Detail |
|---|
public static final LicenseManager getInstance()
public static final LicenseManager newInstance(java.io.File licenseFile)
throws InitializationException
LicenseManager initialized with the specified file.
licenseFile - File to read license data from
LicenseManager
InitializationException - Thrown if the file cannot be read or the license contains an invalid key
public static final LicenseManager newInstance(java.io.File licenseFile,
boolean validate)
throws InitializationException
LicenseManager initialized with the specified file.
licenseFile - File to read license data fromvalidate - Flag indicating whether to validate the licese data
InitializationException - Thrown if the file cannot be read or the license contains an invalid key
public static final LicenseManager newInstance(java.io.InputStream licenseStream,
boolean validate)
throws InitializationException
LicenseManager initialized with the specified stream.
licenseStream - InputStream to read license data fromvalidate - Flag indicating whether to validate the license data
InitializationException - Thrown if the license contains an invalid key
public static final LicenseManager newInstance(java.lang.String productName,
java.lang.String clientId,
java.lang.String productOwnedId,
License[] licenses,
java.lang.String key)
productName - Product name in top-level element of the license file.clientId - Client id in the top-level element of the license file.productOwnedId - Product-owned id in the top-level element of the license file.licenses - All components successfully parsed from the license filekey - Validation key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||