|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LauncherConfigStorage
Interface describes storage for holding the launcher configurations
Method Summary | |
---|---|
void |
addLauncherConfig(ProtectionLauncherConfig aLauncherConfig)
Adds a launcher configuration into the storage |
void |
addLauncherConfigStorageListener(LauncherConfigStorageListener l)
Adds a listener to the listeners list |
ProtectionLauncher |
getLauncher(LicenseStorage.LicenseEntry anEntry,
java.awt.Component anOwner,
boolean isExactMatch)
Creates and returns a new Launcher instance capable of working with the licenses defined by the given license entry |
ProtectionLauncherConfig |
getLauncherConfig(LicenseStorage.LicenseEntry aLicenseEntry,
boolean isExactMatch)
Returns the launcher configuration suitable to handle given license entry |
ProtectionLauncherConfig |
getLauncherConfig(java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion)
Returns the launcher configuration suitable to handle license entry with given attributes |
java.util.Collection |
getLauncherConfigs()
Returns collection of launcher configurations contained in the storage |
LicenseReader |
getLicenseReader(LicenseStorage.LicenseEntry anEntry,
boolean isExactMatch)
Creates and returns LicenseReader instance capable of reading licenses defined by given license entry |
void |
load(java.io.InputStream anInputStream,
ProtectionLauncherConfigReader aReader)
Loads storage from the specified stream |
void |
removeLauncherConfigStorageListener(LauncherConfigStorageListener l)
Removes a listener from the listeners list |
Method Detail |
---|
void addLauncherConfig(ProtectionLauncherConfig aLauncherConfig)
aLauncherConfig
- a launcher configuration to addjava.util.Collection getLauncherConfigs()
ProtectionLauncherConfig getLauncherConfig(LicenseStorage.LicenseEntry aLicenseEntry, boolean isExactMatch)
aLicenseEntry
- the license entry to get the launcher configuration forisExactMatch
- defines that if there is no launcher configuration has been found and parameter is
false
then the method should try to find first suitable launcher configuration ignoring some of
license entry properties.
ProtectionLauncherConfig getLauncherConfig(java.lang.String aProduct, java.lang.String aProductEdition, int aMajorVersion, int aMinorVersion)
aProduct
- product identifieraProductEdition
- product edition identifieraMajorVersion
- major versionaMinorVersion
- minor version
LicenseReader getLicenseReader(LicenseStorage.LicenseEntry anEntry, boolean isExactMatch)
LicenseReader
instance capable of reading licenses defined by given license entry
anEntry
- license entry to get License Reader forisExactMatch
- defines that if no License Reader is found and parameter is false
the method should try to find first suitable License Reader ignoring some of license entry properties
LicenseReader
instanceProtectionLauncher getLauncher(LicenseStorage.LicenseEntry anEntry, java.awt.Component anOwner, boolean isExactMatch)
anEntry
- license entry to create Launcher foranOwner
- owner component for all dialogs can be shown with help of LauncherisExactMatch
- defines that if there is no Launcher has been found and parameter is false
then the method should try to find first suitable Launcher ignoring some of license entry properties.
void load(java.io.InputStream anInputStream, ProtectionLauncherConfigReader aReader) throws java.io.IOException, java.lang.UnsupportedOperationException
anInputStream
- stream to load storage fromaReader
- reader that should be used to load storage
java.io.IOException
- for errors occured during loading
java.lang.UnsupportedOperationException
void addLauncherConfigStorageListener(LauncherConfigStorageListener l)
l
- listener to addvoid removeLauncherConfigStorageListener(LauncherConfigStorageListener l)
l
- listener to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |