|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The client side representation of the sharedlet. From this, the sharedlet's views and session logic components can be accessed. This is a wrapper class from which sharedlet views & session logic instances will be extracted from.
This class is optional. If the sharedlet developer does not provide an implementation of this class, the DefaultSharedletImpl will be provided by the framework; however, storing and loading documents will not then be supported for this sharedlet.
The DefaultSharedletImpl implementation does a lazy instantiate whereby the views and session logic components are only instantiated when they are needed.
For convenience, the sharedlet developer may extend from DefaultSharedletImpl and override the functions necessary.
Method Summary | |
SharedletSessionLogic |
getSessionLogic(java.lang.String id)
Gets the session logic instance for a particular id. |
SharedletView |
getView(java.lang.String id)
Gets the views instance for a particular view id. |
void |
loadDocument(java.net.URL url)
A document that matches the data types supported by this sharedlet This document is guaranteed to be of a data type supported by the sharedlet. |
Method Detail |
public void loadDocument(java.net.URL url)
url
- The url of the document to load.public SharedletView getView(java.lang.String id)
id
- The id returned by SharedletViewInfo.getID()public SharedletSessionLogic getSessionLogic(java.lang.String id)
The session logic encapsulates the common state shared between distributed instances of the same sharedlet and normally resides on the server side.
id
- The id returned by SharedletSessionLogicInfo.getID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |