public class ProviderRegistry extends Object
Modifier | Constructor and Description |
---|---|
protected |
ProviderRegistry()
This constructor is provided for use by implementations and by other
specifications that extend this class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected ProviderRegistry()
public static ProviderRegistry getInstance()
public void registerXletBound(XletBoundProvider p) throws ProviderFailedInstallationException
p
- the provider to registerIllegalArgumentException
- 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 registerIllegalArgumentException
- 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
getInstalledProvidersIllegalArgumentException
- if the provider name is not one
of those installed, i.e. is not one returned from a call
to getInstalledProvidersProvider.getVersion()
Copyright © 2013 CableLabs. All rights reserved.