public class XletContextImpl extends Object implements XletContext
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER |
static String |
ROOT_CONTAINER |
static String |
SERVICE_CONTEXT |
ARGS| Constructor and Description |
|---|
XletContextImpl(XletManager xletMgr,
Xlet xlet,
ServiceContext context,
String[] args) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getXletProperty(String prop)
Provides an Xlet with a mechanism to retrieve named
properties from the XletContext.
|
void |
notifyDestroyed()
Used by an application to notify its manager that it
has entered into the
Destroyed state.
|
void |
notifyPaused()
Notifies the manager that the Xlet does not want to be active and has
entered the Paused state.
|
void |
resumeRequest()
Provides the Xlet with a mechanism to indicate that it is
interested in entering the Active state.
|
public static final String CONTAINER
public static final String SERVICE_CONTEXT
public static final String ROOT_CONTAINER
public XletContextImpl(XletManager xletMgr, Xlet xlet, ServiceContext context, String[] args)
public Object getXletProperty(String prop)
getXletProperty in interface XletContextprop - The name of the property.null is returned if no value is available for key.public void notifyPaused()
If an Xlet calls notifyPaused(), in the
future it may receive an Xlet.startXlet() call to request
it to become active, or an Xlet.destroyXlet() call to request
it to destroy itself.
notifyPaused in interface XletContextpublic void resumeRequest()
resumeRequest in interface XletContextpublic void notifyDestroyed()
destroy method, and all resources
held by the Xlet will be considered eligible for reclamation.
Before calling this method,
the Xlet must have performed the same operations
(clean up, releasing of resources etc.) it would have if the
Xlet.destroyXlet() had been called.notifyDestroyed in interface XletContextCopyright © 2012 code4tv.com. All Rights Reserved.