|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Plugin
This interface allows an application or service manager to control
the lifecycle of applications being executed by an inter-operable
plug-in. It shall be implemented by inter-operable plug-ins and
shall be called by implementation of the application manager in
a GEM terminal. It shall not be called by GEM applications.
The usage model for this interface is the reuse of the
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.
Method Summary | |
---|---|
javax.tv.xlet.Xlet |
initApplication(AppAttributes app)
Request the plug-in to prepare for executing an instance of an application in a format which it supports. |
javax.tv.xlet.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. |
Method Detail |
---|
boolean isSupported(AppAttributes app)
app
- an instance of AppAttributes
for the
application which is to be started.
javax.tv.xlet.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.
javax.tv.xlet.Xlet initApplication(InnerApplication app) throws InvalidApplicationException
app
- an instance of InnerApplication for the application which is to be started
InvalidApplicationException
- if the application to be started is not valid for
this plug-in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |