|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dvb.spi.ProviderRegistry
public class ProviderRegistry
Registry of providers.
| Constructor Summary | |
|---|---|
protected |
ProviderRegistry()
This constructor is provided for use by implementations and by other specifications that extend this class. |
| Method Summary | |
|---|---|
String[] |
getInstalledProviders()
Return the names of all installed providers. |
static ProviderRegistry |
getInstance()
Return the singleton provider registry as seen by the calling application. |
String |
getProviderVersion(String provider)
Return the version of an installed provider. |
void |
registerSystemBound(SystemBoundProvider p)
Registers a provider. |
void |
registerXletBound(XletBoundProvider p)
Registers a provider. |
void |
unregister(Provider p)
Unregister a provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ProviderRegistry()
| Method Detail |
|---|
public static ProviderRegistry getInstance()
public void registerXletBound(XletBoundProvider p)
throws ProviderFailedInstallationException
p - the provider to register
IllegalArgumentException - if Provider does not export a
valid set of services as determined by
Provider.getServiceProviderInterfaces(), or if
the provider does not have have a non-null Xlet context.
ProviderFailedInstallationException - if the organisation_id
in the name of the provider does not match the
organisation_id in a certificate which can authenticate
the provider class.
SecurityException - if the caller, for all of the SPIs
implemented by the provider, does not have a ProviderPermission
whose name is the fully qualified name of the class returned
by Provider getServiceProviderInterfaces and whose action
is "xlet".Provider.getServiceProviderInterfaces(),
XletBoundProvider.getBoundXletContext(),
org.dvb.spi.XletBoundProvider#getBoundPBPXletContext()
public void registerSystemBound(SystemBoundProvider p)
throws ProviderFailedInstallationException
p - the provider to register
IllegalArgumentException - if Provider does not expoort a
valid set of services as determined by
Provider.getServiceProviderInterfaces()
ProviderFailedInstallationException - if the organisation_id
in the name of the provider does not match the
organisation_id in a certificate which can authenticate
the provider class.
SecurityException - if the caller, for all of the SPIs
implemented by the provider, does not have a ProviderPermission
whose name is the fully qualified name of the class returned
by Provider getServiceProviderInterfaces and whose action
is "system".Provider.getServiceProviderInterfaces()public void unregister(Provider p)
p - the provider to unregisterXlet.destroyXlet(boolean)public String[] getInstalledProviders()
Provider.getName()public String getProviderVersion(String provider)
provider - the name of a provider as returned by the method
getInstalledProviders
IllegalArgumentException - if the provider name is not one
of those installed, i.e. is not one returned from a call
to getInstalledProvidersProvider.getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||