com.anabas.sharedlet
Interface SharedletManager


public interface SharedletManager
extends SharedletService

Responsible for instantaiting sharedlets and storing a mapping between SharedletInfo structure and Sharedlets. Its submanagers, SharedletViewManager and SharedletLogicManager manages the SharedletView and SharedletSessionLogic structures.

All sharedlet managers should be able to load a jar packaged sharedlet with the MANIFEST file containing the following sharedlet entries:

Name: <Sharedlet Info Class>
Sharedlet: True

Location In GXO

A sharedlet can find it under the meeting context:

/services/SharedletManager


Method Summary
 SharedletInfo getInfo(Sharedlet sharedlet)
          Get the SharedletInfo instance associated with a particular Sharedlet instance.
 SharedletInfo getInfo(java.lang.String MIMEType)
          Get the SharedletInfo structure for a sharedlet type.
 SharedletLogicManager getLogicManager()
           
 Sharedlet getSharedlet(SharedletInfo info)
          Get the Sharedlet instance associated with a particular SharedletInfo instance.
 java.util.Vector getSharedletInfos()
          Get a list of SharedletInfo structures that this sharedlet manager is managing.
 java.util.Vector getSharedletTypes()
          Get a list of sharedlet MIME Types that this sharedlet manager knows about and is managing.
 SharedletViewManager getViewManager()
           
 Sharedlet newInstance(java.lang.String MIMEType)
          Get a new instance of a sharedlet of a particular type (application/x-sharedlet-???).
 
Methods inherited from interface com.anabas.sharedlet.SharedletService
init, resume, shutdown, suspend
 

Method Detail

getSharedletTypes

public java.util.Vector getSharedletTypes()
Get a list of sharedlet MIME Types that this sharedlet manager knows about and is managing.
Returns:
The list of sharedlet MIME Types (String)

getSharedletInfos

public java.util.Vector getSharedletInfos()
Get a list of SharedletInfo structures that this sharedlet manager is managing.
Returns:
The list of SharedletInfo structures.

newInstance

public Sharedlet newInstance(java.lang.String MIMEType)
Get a new instance of a sharedlet of a particular type (application/x-sharedlet-???).
Parameters:
MIMEType - the type of the sharedlet to instantiate.
Returns:
A new instance of the sharedlet matching its unique MIMEType

getInfo

public SharedletInfo getInfo(java.lang.String MIMEType)
Get the SharedletInfo structure for a sharedlet type.
Parameters:
MIMEType - the type of the sharedlet to get info for.
Returns:
The SharedletInfo instances that matches a particular MIME Type. null if sharedle type not found.

getSharedlet

public Sharedlet getSharedlet(SharedletInfo info)
Get the Sharedlet instance associated with a particular SharedletInfo instance.
Parameters:
info - The SharedletInfo structure that corresponds to the Sharedlet instance to retrieve.
Returns:
The sharedlet instance associated with a particular sharedlet info instance.

getInfo

public SharedletInfo getInfo(Sharedlet sharedlet)
Get the SharedletInfo instance associated with a particular Sharedlet instance.
Parameters:
The - sharedlet instance to get sharedlet info for.
Returns:
The sharedlet info instances for a particular sharedlet instance.

getViewManager

public SharedletViewManager getViewManager()
Returns:
The current view manager. null implies no view container exists.

getLogicManager

public SharedletLogicManager getLogicManager()
Returns:
The current logic manager. null implies no logic container exists.