|
||||||||||
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.
Method Summary | |
---|---|
java.lang.String[] |
getInstalledProviders()
Return the names of all installed providers. |
static ProviderRegistry |
getInstance()
Return the singleton provider registry as seen by the calling application. |
java.lang.String |
getProviderVersion(java.lang.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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProviderRegistry getInstance()
public void registerXletBound(XletBoundProvider p) throws ProviderFailedInstallationException
p
- the provider to register
java.lang.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.
java.lang.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
p
- the provider to register
java.lang.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.
java.lang.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 java.lang.String[] getInstalledProviders()
Provider.getName()
public java.lang.String getProviderVersion(java.lang.String provider)
provider
- the name of a provider as returned by the method
getInstalledProviders
java.lang.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 |