|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.pro.ls.BasicLauncherConfigStorage
public abstract class BasicLauncherConfigStorage
Basic implementation of LauncherConfigStorage interface
| Nested Class Summary | |
|---|---|
static class |
BasicLauncherConfigStorage.EntryLicenseReader
Specific implementation of the License Reader intended to work with the license entry |
protected class |
BasicLauncherConfigStorage.EntryProtectionLauncher
|
| Field Summary | |
|---|---|
protected dev.util.collections.HashedBoundList |
fLauncherConfigs
|
(package private) java.util.Vector |
fLauncherConfigStorageListeners
|
protected boolean |
fModified
|
| Constructor Summary | |
|---|---|
BasicLauncherConfigStorage()
|
|
| Method Summary | |
|---|---|
void |
addLauncherConfig(ProtectionLauncherConfig aLauncherConfig)
Adds a launcher configuration into the storage |
void |
addLauncherConfigStorageListener(LauncherConfigStorageListener l)
Adds a listener to the listeners list |
protected ProtectionLauncher |
createLauncher(LicenseStorage.LicenseEntry anEntry,
ProtectionLauncherConfig aLauncherConfig,
java.awt.Component anOwner)
|
protected void |
fireLauncherConfigAdded(ProtectionLauncherConfig aLauncherConfig)
|
protected void |
fireLauncherConfigRemoved(ProtectionLauncherConfig aLauncherConfig)
|
protected void |
fireLauncherConfigStorageLoaded()
|
protected void |
fireLauncherConfigStorageSaved()
|
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 anEntry,
boolean isExactMatch)
Returns the launcher configuration suitable to handle given license entry |
ProtectionLauncherConfig |
getLauncherConfig(java.lang.String aProductID)
Returns launcher configuration for given product identifier |
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 |
protected java.lang.String |
getLicenseFileLocation(LicenseStorage.LicenseEntry anEntry,
LicenseReader aLicenseReader)
|
LicenseReader |
getLicenseReader(LicenseStorage.LicenseEntry anEntry,
boolean isExactMatch)
Creates and returns LicenseReader instance capable of reading licenses defined by given license entry |
void |
removeLauncherConfigStorageListener(LauncherConfigStorageListener l)
Removes a listener from the listeners list |
void |
setModified(boolean aModified)
Specifies that the storage is modified |
protected void |
updateLicenseEntryProperties(LicenseStorage.LicenseEntry aLicenseEntry)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jp.protection.pub.pro.ls.LauncherConfigStorage |
|---|
load |
| Field Detail |
|---|
protected dev.util.collections.HashedBoundList fLauncherConfigs
protected boolean fModified
transient java.util.Vector fLauncherConfigStorageListeners
| Constructor Detail |
|---|
public BasicLauncherConfigStorage()
| Method Detail |
|---|
public ProtectionLauncher getLauncher(LicenseStorage.LicenseEntry anEntry,
java.awt.Component anOwner,
boolean isExactMatch)
LauncherConfigStorage
getLauncher in interface LauncherConfigStorageanEntry - 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.
public ProtectionLauncherConfig getLauncherConfig(LicenseStorage.LicenseEntry anEntry,
boolean isExactMatch)
LauncherConfigStorage
getLauncherConfig in interface LauncherConfigStorageanEntry - 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.
public ProtectionLauncherConfig getLauncherConfig(java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion)
LauncherConfigStorage
getLauncherConfig in interface LauncherConfigStorageaProduct - product identifieraProductEdition - product edition identifieraMajorVersion - major versionaMinorVersion - minor version
protected ProtectionLauncher createLauncher(LicenseStorage.LicenseEntry anEntry,
ProtectionLauncherConfig aLauncherConfig,
java.awt.Component anOwner)
public void addLauncherConfig(ProtectionLauncherConfig aLauncherConfig)
LauncherConfigStorage
addLauncherConfig in interface LauncherConfigStorageaLauncherConfig - a launcher configuration to addpublic ProtectionLauncherConfig getLauncherConfig(java.lang.String aProductID)
aProductID - product identifier
public java.util.Collection getLauncherConfigs()
LauncherConfigStorage
getLauncherConfigs in interface LauncherConfigStorage
public LicenseReader getLicenseReader(LicenseStorage.LicenseEntry anEntry,
boolean isExactMatch)
LauncherConfigStorageLicenseReader instance capable of reading licenses defined by given license entry
getLicenseReader in interface LauncherConfigStorageanEntry - 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 instancepublic void setModified(boolean aModified)
aModified - value to set
protected java.lang.String getLicenseFileLocation(LicenseStorage.LicenseEntry anEntry,
LicenseReader aLicenseReader)
protected void updateLicenseEntryProperties(LicenseStorage.LicenseEntry aLicenseEntry)
public void addLauncherConfigStorageListener(LauncherConfigStorageListener l)
LauncherConfigStorage
addLauncherConfigStorageListener in interface LauncherConfigStoragel - listener to addpublic void removeLauncherConfigStorageListener(LauncherConfigStorageListener l)
LauncherConfigStorage
removeLauncherConfigStorageListener in interface LauncherConfigStoragel - listener to removeprotected void fireLauncherConfigAdded(ProtectionLauncherConfig aLauncherConfig)
protected void fireLauncherConfigRemoved(ProtectionLauncherConfig aLauncherConfig)
protected void fireLauncherConfigStorageLoaded()
protected void fireLauncherConfigStorageSaved()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||