com.jp.protection.pub
Class HeadlessProtectionFactory

java.lang.Object
  extended by com.jp.protection.pub.ProtectionFactoryBase
      extended by com.jp.protection.pub.HeadlessProtectionFactory
Direct Known Subclasses:
HeadlessProtectionFactoryPro

public class HeadlessProtectionFactory
extends ProtectionFactoryBase

Factory class responsible for the creation of the instances of various Protection! classes sutable for headless aplications depending on the Protection! edition (Standard or Professional) these features are either initialized or not.


Field Summary
protected static HeadlessProtectionFactory fInstance
           
protected static java.lang.Class fProtectionFactoryClass
           
 
Fields inherited from class com.jp.protection.pub.ProtectionFactoryBase
PROPERTY_LICENSE_FACADE_URL, PROPERTY_LICENSE_FOLDER, PROPERTY_LICENSE_NAME, PROPERTY_LICENSE_RESOURCE_FOLDER, PROPERTY_LICENSE_WRITER_OUTPUT, PROPERTY_LICENSE_WRITER_SEARCH_LICENSE_RESOURCE, PROTECTION_BACKEND_LICENSE_NAME, PROTECTION_LICENSE_FOLDER, PROTECTION_LICENSE_NAME, PROTECTION_LICENSE_RESOURCE_FOLDER, PROTECTION_SALES_LICENSE_NAME, SUB_VERSION, VERSION
 
Constructor Summary
HeadlessProtectionFactory()
           
 
Method Summary
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.
protected static LicenseAcceptanceDelegate createLicenseAcceptanceDelegateInt()
           
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 LicenseListener createLicenseListener()
          Creates a new instance of the license listener.
protected  LicenseListener createLicenseListenerInt()
           
static LicenseReader createLicenseReader()
          Creates a new instance of the license reader
protected  LicenseReader createLicenseReaderInt()
           
static HeadlessProtectionFactory getInstance()
          Returns an instance of the protection factory
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

fProtectionFactoryClass

protected static java.lang.Class fProtectionFactoryClass

fInstance

protected static HeadlessProtectionFactory fInstance
Constructor Detail

HeadlessProtectionFactory

public HeadlessProtectionFactory()
Method Detail

initProfessional

public static void initProfessional()
Initializes factory to enable creation of the Protection! Professional edition classes


getInstance

public static HeadlessProtectionFactory getInstance()
Returns an instance of the protection factory

Returns:
an instance of the ProtectionFactory

createLicenseReader

public static LicenseReader createLicenseReader()
Creates a new instance of the license reader

Returns:
a new instance of the LicenseReader

createLicenseHost

public static LicenseHost createLicenseHost()
Creates a new instance of the license host

Returns:
a new instance of the LicenseHost

createLicenseHost

public static LicenseHost createLicenseHost(LicenseReader aLicenseReader)
Creates a new instance of the license host and assigns a license reader to it

Parameters:
aLicenseReader - license reader to be assigned to the license host
Returns:
a new instance of the LicenseHost

createLicenseHost

public 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

Parameters:
aLicenseReader - license reader to be assigned to the license host
aLicenseHostListener - listener to add
Returns:
a new instanced of the LicenseHost

createLicenseListener

public static LicenseListener createLicenseListener()
Creates a new instance of the license listener.

Returns:
an new instance of the LicenseListener

createLicenseAcceptanceDelegate

public 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.

Returns:
a new instance of the LicenseAcceptanceDelegate

createLicenseAcceptanceDelegateInt

protected static LicenseAcceptanceDelegate createLicenseAcceptanceDelegateInt()

createLicenseHostInt

protected LicenseHost createLicenseHostInt(LicenseReader aLicenseReader,
                                           LicenseHostListener aLicenseHostListener)

createLicenseListenerInt

protected LicenseListener createLicenseListenerInt()

createLicenseReaderInt

protected LicenseReader createLicenseReaderInt()