com.jp.protection.priv.pro.integration
Interface LicensingFacadePluginFactory


public interface LicensingFacadePluginFactory

This class intended to create plug-ins for the LocalLicensingFacade


Method Summary
 void close()
          Releases the factory instance.
 LicensingFacadePlugin create(LocalLicensingFacade aLicensingFacade)
          Creates a new instance of the LicensingFacadePlugin.
 void init()
          Initializes the factory instance
 void release(LicensingFacadePlugin aLicensingFacadePlugin)
          Releases plug-in that has been created by the factory.
Please note: there is no guarantee that this method will be called as it is depends on the finalize() method calls .
 

Method Detail

create

LicensingFacadePlugin create(LocalLicensingFacade aLicensingFacade)
Creates a new instance of the LicensingFacadePlugin. Actual implementation is also responsible for the proper initialization of the plug-in by calling its init(...) method.

Parameters:
aLicensingFacade - facade instance to create plug-in to
Returns:
a new instance of the LicensingFacadePlugin

release

void release(LicensingFacadePlugin aLicensingFacadePlugin)
Releases plug-in that has been created by the factory.
Please note: there is no guarantee that this method will be called as it is depends on the finalize() method calls . It is better to let plug-in not to hold any resources which would needed to be released or registered with the factory. Developer should write code in the close() method which is required to release such resources.

Parameters:
aLicensingFacadePlugin - plug-in instance to release.

init

void init()
Initializes the factory instance


close

void close()
Releases the factory instance. It is a good place to release all the resources acquired by the factory or plug-ins created by such factory.