|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jp.protection.pub.ProtectionFactoryBase
com.jp.protection.pub.ProtectionFactory
public class ProtectionFactory
Factory class responsible for the creation of the instances of various Protection! classes depending on the Protection! edition (Standard or Professional) these features are either initialized or not.
Field Summary | |
---|---|
protected static ProtectionFactory |
fInstance
|
protected static java.lang.Class |
fProtectionFactoryClass
|
Constructor Summary | |
---|---|
ProtectionFactory()
|
Method Summary | |
---|---|
static LicenseAboutDialog |
createLicenseAboutDialog(java.awt.Component anOwner,
ProductInfo aProductInfo)
Creates licensing about dialog |
protected LicenseAboutDialog |
createLicenseAboutDialogInt(java.awt.Component anOwner,
ProductInfo aProductInfo)
|
static LicenseAcceptanceDelegate |
createLicenseAcceptanceDelegate()
Creates an instance of dummy implementation of the license acceptance delegate that assumes that license agreement is already accepted by some way outside application. |
static LicenseAcceptanceDelegate |
createLicenseAcceptanceDelegate(java.awt.Component anOwner,
java.lang.String aTitle)
Creates an instance of default implementation of the license acceptance delegate. |
protected static LicenseAcceptanceDelegate |
createLicenseAcceptanceDelegateInt()
|
protected LicenseAcceptanceDelegate |
createLicenseAcceptanceDelegateInt(java.awt.Component anOwner,
java.lang.String aTitle)
|
static LicenseHost |
createLicenseHost()
Creates a new instance of the license host |
static LicenseHost |
createLicenseHost(LicenseReader aLicenseReader)
Creates a new instance of the license host and assigns a license reader to it |
static LicenseHost |
createLicenseHost(LicenseReader aLicenseReader,
LicenseHostListener aLicenseHostListener)
Creates a new instance of the license host, assigns a license reader to it and adds license host listener to both license reader and license host |
protected LicenseHost |
createLicenseHostInt(LicenseReader aLicenseReader,
LicenseHostListener aLicenseHostListener)
|
static LicenseHostIssueResolver |
createLicenseHostIssueResolver(LicenseHost aLicenseHost,
java.awt.Component anOwner,
ProductInfo aProductInfo)
Creates an instance of default implementation of the license host issue resolver. |
protected LicenseHostIssueResolver |
createLicenseHostIssueResolverInt(LicenseHost aLicenseHost,
java.awt.Component anOwner,
ProductInfo aProductInfo)
|
static LicenseListener |
createLicenseListener()
Creates a new instance of the license listener. |
static LicenseListener |
createLicenseListener(java.awt.Component anOwner)
Creates a new instance of the license listener |
protected LicenseListener |
createLicenseListenerInt(java.awt.Component anOwner)
|
static LicenseReader |
createLicenseReader()
Creates a new instance of the license reader |
protected LicenseReader |
createLicenseReaderInt()
|
static LicenseReaderIssueResolver |
createLicenseReaderIssueResolver(LicenseReader aLicenseReader)
Creates an instance of default implementation of the license reader issue resolver. |
static LicenseReaderIssueResolver |
createLicenseReaderIssueResolver(LicenseReader aLicenseReader,
java.awt.Component aOwner,
ProductInfo aProductInfo)
Creates an instance of default implementation of the license reader issue resolver. |
protected LicenseReaderIssueResolver |
createLicenseReaderIssueResolverInt(LicenseReader aLicenseReader,
java.awt.Component aOwner,
ProductInfo aProductInfo)
|
static LicensingWizard |
createLicensingWizard(LicenseReader aLicenseReader,
java.awt.Component aOwner,
ProductInfo aProductInfo)
Creates licensing wizard instance |
protected LicensingWizard |
createLicensingWizardInt(LicenseReader aLicenseReader,
java.awt.Component aOwner,
ProductInfo aProductInfo)
|
static ProtectionFactory |
getInstance()
Returns an instance of the protection factory |
protected void |
initLicensingWizard(LicensingWizard aLicensingWizard,
LicenseReader aLicenseReader,
ProductInfo aProductInfo)
|
static void |
initProfessional()
Initializes factory to enable creation of the Protection! Professional edition classes |
Methods inherited from class com.jp.protection.pub.ProtectionFactoryBase |
---|
getAPIVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.lang.Class fProtectionFactoryClass
protected static ProtectionFactory fInstance
Constructor Detail |
---|
public ProtectionFactory()
Method Detail |
---|
public static void initProfessional()
public static ProtectionFactory getInstance()
ProtectionFactory
public static LicensingWizard createLicensingWizard(LicenseReader aLicenseReader, java.awt.Component aOwner, ProductInfo aProductInfo)
aLicenseReader
- a license reader that can be used by the wizardaOwner
- an owner for the wizardaProductInfo
- a product information
LicensingWizard
public static LicenseAboutDialog createLicenseAboutDialog(java.awt.Component anOwner, ProductInfo aProductInfo)
anOwner
- an owner for the dialogaProductInfo
- a product information
LicenseAboutDialog
public static LicenseReader createLicenseReader()
LicenseReader
public static LicenseHost createLicenseHost()
LicenseHost
public static LicenseHost createLicenseHost(LicenseReader aLicenseReader)
aLicenseReader
- license reader to be assigned to the license host
LicenseHost
public static LicenseHost createLicenseHost(LicenseReader aLicenseReader, LicenseHostListener aLicenseHostListener)
aLicenseReader
- license reader to be assigned to the license hostaLicenseHostListener
- listener to add
LicenseHost
public static LicenseListener createLicenseListener(java.awt.Component anOwner)
anOwner
- optional owner component can be used by the listener's
implementation as aowner to the dialogs and messages
LicenseListener
public static LicenseListener createLicenseListener()
createLicenseListener(null)
LicenseListener
public static LicenseReaderIssueResolver createLicenseReaderIssueResolver(LicenseReader aLicenseReader, java.awt.Component aOwner, ProductInfo aProductInfo)
aLicenseReader
- a license reader that can be used to locate and read licensesaOwner
- an owner for the dialogs that can be shown by the resolver during workaProductInfo
- a product information
LicenseReaderIssueResolver
public static LicenseReaderIssueResolver createLicenseReaderIssueResolver(LicenseReader aLicenseReader)
createLicenseReaderIssueResolverInt(aLicenseReader, null, null)
aLicenseReader
- a license reader that can be used to locate and read licenses
LicenseReaderIssueResolver
public static LicenseHostIssueResolver createLicenseHostIssueResolver(LicenseHost aLicenseHost, java.awt.Component anOwner, ProductInfo aProductInfo)
aLicenseHost
- a license host that can be used to obtain various propertiesanOwner
- an owner for the dialogs that can be shown by the resolver during workaProductInfo
- a product information
LicenseHostIssueResolver
public static LicenseAcceptanceDelegate createLicenseAcceptanceDelegate(java.awt.Component anOwner, java.lang.String aTitle)
anOwner
- an owner for the dialogs that can be shown by the delegate during workaTitle
- a title for the license acceptance dialog
LicenseAcceptanceDelegate
public static LicenseAcceptanceDelegate createLicenseAcceptanceDelegate()
LicenseAcceptanceDelegate
protected static LicenseAcceptanceDelegate createLicenseAcceptanceDelegateInt()
protected LicenseHost createLicenseHostInt(LicenseReader aLicenseReader, LicenseHostListener aLicenseHostListener)
protected LicenseListener createLicenseListenerInt(java.awt.Component anOwner)
protected LicenseReaderIssueResolver createLicenseReaderIssueResolverInt(LicenseReader aLicenseReader, java.awt.Component aOwner, ProductInfo aProductInfo)
protected LicenseReader createLicenseReaderInt()
protected LicenseAboutDialog createLicenseAboutDialogInt(java.awt.Component anOwner, ProductInfo aProductInfo)
protected LicenseAcceptanceDelegate createLicenseAcceptanceDelegateInt(java.awt.Component anOwner, java.lang.String aTitle)
protected LicenseHostIssueResolver createLicenseHostIssueResolverInt(LicenseHost aLicenseHost, java.awt.Component anOwner, ProductInfo aProductInfo)
protected LicensingWizard createLicensingWizardInt(LicenseReader aLicenseReader, java.awt.Component aOwner, ProductInfo aProductInfo)
protected void initLicensingWizard(LicensingWizard aLicensingWizard, LicenseReader aLicenseReader, ProductInfo aProductInfo)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |