|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.license.AbstractProductLicenseManager
AbstractProductLicenseManager implements the more mundane
methods of a ProductLicenseManager, which manages and validates
ProductLicense instances.
| Constructor Summary | |
AbstractProductLicenseManager()
|
|
| Method Summary | |
void |
addProductLicense(ProductLicense productLicense)
Add a ProductLicense. |
abstract void |
assertValid()
Assert that all ProductLicenses are valid. |
ProductLicense |
getProductLicense(String name)
Get a ProductLicense by name. |
ProductLicense[] |
getProductLicenses()
Get all ProductLicenses. |
abstract void |
initialize(Object config)
Initialize the ProductLicenseManager. |
boolean |
isLocked()
Check the ProductLicenseManager locked status |
void |
lock()
Lock the ProductLicenseManager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractProductLicenseManager()
| Method Detail |
public abstract void initialize(Object config)
throws ProductLicenseException
initialize in interface ProductLicenseManagerconfig - an implementation-specific configuration parameter.
This may be a Properties object, a File, or any other object
specific to the ProductLicenseManager implementation.
ProductLicenseException - if an error initializing the
ProductLicenseManager.
public final void addProductLicense(ProductLicense productLicense)
throws ProductLicenseException
addProductLicense in interface ProductLicenseManagerproductLicense - the product license.
ProductLicenseException - if an invalid or unknown product
license is added, or if the ProductLicenseManager is locked and
cannot be modified.public final ProductLicense[] getProductLicenses()
getProductLicenses in interface ProductLicenseManagerpublic final ProductLicense getProductLicense(String name)
getProductLicense in interface ProductLicenseManagername - the name of the ProductLicense.
public final void lock()
lock in interface ProductLicenseManagerpublic boolean isLocked()
isLocked in interface ProductLicenseManager
public abstract void assertValid()
throws ProductLicenseException
assertValid in interface ProductLicenseManagerProductLicenseException - if a ProductLicense is not valid,
the ProductLicenseManager or a ProductLicense is NOT locked at
validation time.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||