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() |
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
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(),
XletBoundProvider.getBoundPBPXletContext()public void registerSystemBound(SystemBoundProvider p) throws ProviderFailedInstallationException
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)
Xlet.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 © 2012 code4tv.com. All Rights Reserved.