com.jp.protection.pub.pro.lserver
Interface LicensingServiceProvider

All Known Implementing Classes:
BasicLicensingServiceProvider

public interface LicensingServiceProvider

Defines factory interface which provides ability to create the Licensing Services

Since:
3.0

Method Summary
 void addLicensingServiceProviderListener(LicensingServiceProviderListener l)
          Adds a listener to the listeners list
 LicensingService createLicensingService(java.util.Map anAttributes)
          Creates a new instance of the Licensing Service
 void init(java.lang.String anAddress, java.util.Map anAttributes)
          Initializes the provider instance
 boolean isDefault()
          Returns whether this provider is a default provider
 void release()
          Releases provider and of all associated recourses including the Licensing Services created by the provider
 void releaseLicensingService(LicensingService aLicensingService)
          Releases a Licensing Service and all of the associated resources including the license locks acquired by the service
 void removeLicensingServiceProviderListener(LicensingServiceProviderListener l)
          Removes the listener from the listeners list
 

Method Detail

addLicensingServiceProviderListener

void addLicensingServiceProviderListener(LicensingServiceProviderListener l)
Adds a listener to the listeners list

Parameters:
l - listener to add

removeLicensingServiceProviderListener

void removeLicensingServiceProviderListener(LicensingServiceProviderListener l)
Removes the listener from the listeners list

Parameters:
l - listener to remove

createLicensingService

LicensingService createLicensingService(java.util.Map anAttributes)
Creates a new instance of the Licensing Service

Parameters:
anAttributes - attributes (identified by LicensingService.ATTR_ keys) which describe client environment.
Returns:
new instance of the Licensing Service

releaseLicensingService

void releaseLicensingService(LicensingService aLicensingService)
Releases a Licensing Service and all of the associated resources including the license locks acquired by the service

Parameters:
aLicensingService - a Licensing Service to release

release

void release()
Releases provider and of all associated recourses including the Licensing Services created by the provider


isDefault

boolean isDefault()
Returns whether this provider is a default provider

Returns:
true if this provider is default; false otherwise

init

void init(java.lang.String anAddress,
          java.util.Map anAttributes)
Initializes the provider instance

Parameters:
anAddress - address of the Licensing Server to connect
anAttributes - initialization attributes