public interface Plugin
javax.tv.xlet.Xlet interface to represent applications
in formats other than DVB-J.
It is the responsibility of the plug-in to provide implementations of the
methods in that interface and to perform the translation between the
semantics specified for DVB-J applications and the semantics of the
application format which the plug-in supports.
The plug-in is initialized by the application manager calling the
no-argument constructor of the object implementing this interface.
Plug-ins are not expected to perform any time consuming activities
or hold any scarce resources in this call.| Modifier and Type | Method and Description |
|---|---|
Xlet |
initApplication(AppAttributes app)
Request the plug-in to prepare for executing an instance of an
application in a format which it supports.
|
Xlet |
initApplication(InnerApplication app)
Request the plug-in to prepare for executing an instance of an application in a format
which it supports.If the application cannot be prepared then null shall be returned.
|
boolean |
initPlugin()
initialize the plug-in.
|
boolean |
isSupported(AppAttributes app)
Test whether this plug-in is able to support a particular
application.
|
void |
terminatePlugin()
Terminate the plug-in.
|
boolean isSupported(AppAttributes app)
app - an instance of AppAttributes for the
application which is to be started.Xlet initApplication(AppAttributes app) throws InvalidApplicationException
app - an instance of AppAttributes for the
application which is to be started.InvalidApplicationException - if the application to be started
is not valid for this plug-inboolean initPlugin()
startApplication. It may also be called after a call
to terminatePlugin if a plug-in was not removed from
the virtual machine where it was executing. The behaviour of an
application manager should a plug-in fail to initialize is
intentionally unspecified.void terminatePlugin()
initPlugin method
shall be called again to put the plug-in again in an initialized
condition. A plug-in may not refuse to terminate and throwing a
runtime exception or error from this method shall result in the
plug-in being removed from the virtual machine where it was
executing.Xlet initApplication(InnerApplication app) throws InvalidApplicationException
app - an instance of InnerApplication for the application which is to be startedInvalidApplicationException - if the application to be started is not valid for
this plug-inCopyright © 2012 code4tv.com. All Rights Reserved.