|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.pro.integration.LicensingFacadeProvider
public abstract class LicensingFacadeProvider
This class is responsible of providing the LicensingFacade instances.
Typical code would look like:
LicensingFacade licensingFacade = LicensingFacadeProvider.getInstance("WS").getLicensingFacade();
| Field Summary | |
|---|---|
protected boolean |
fDefault
|
protected static java.util.HashMap |
fProviderMap
|
| Constructor Summary | |
|---|---|
LicensingFacadeProvider()
|
|
| Method Summary | |
|---|---|
static void |
addProvider(java.lang.String aName,
LicensingFacadeProvider aProvider)
Registers provider implementation for the name specified |
static LicensingFacadeProvider |
getInstance()
Returns an instance of LicensingFacadeProvider |
static LicensingFacadeProvider |
getInstance(java.lang.String aName)
Returns an instance of the LicensingFacadeProvider with the specified name |
abstract LicensingFacade |
getLicensingFacade()
|
static boolean |
hasProviders()
Test whether there are any available providers |
boolean |
isDefault()
Returns whether provider is default |
static void |
removeProvider(java.lang.String aName)
Removes provider implementation with the specified name |
void |
setDefault(boolean aDefault)
Specifies that provider should be default |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean fDefault
protected static final java.util.HashMap fProviderMap
| Constructor Detail |
|---|
public LicensingFacadeProvider()
| Method Detail |
|---|
public abstract LicensingFacade getLicensingFacade()
public boolean isDefault()
true if provider is default; false otherwisepublic void setDefault(boolean aDefault)
aDefault - true if provider should be default; false otherwisepublic static final LicensingFacadeProvider getInstance()
LicensingFacadeProvider
LicensingFacadeProviderpublic static final LicensingFacadeProvider getInstance(java.lang.String aName)
LicensingFacadeProvider with the specified name
aName - name of provider to return
LicensingFacadeProviderpublic static boolean hasProviders()
true if there at least one registered provider; false otherwise
public static final void addProvider(java.lang.String aName,
LicensingFacadeProvider aProvider)
aName - name of provider to registeraProvider - an instance of providerpublic static final void removeProvider(java.lang.String aName)
aName - name of provider to return
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||