org.jdesktop.wonderland.common.modules
Class ModulePluginList

java.lang.Object
  extended by org.jdesktop.wonderland.common.modules.ModulePluginList
All Implemented Interfaces:
java.io.Serializable

public class ModulePluginList
extends java.lang.Object
implements java.io.Serializable

A list of module plugins, given by URIs. These URIs are of the format:

wlj:///

where is the name of the module, and is the path of the jar within the module, e.g. "server/myplugin-server.jar".

This class deserializes information distributed from the module service.

Author:
Jordan Slott
See Also:
Serialized Form

Constructor Summary
ModulePluginList()
          Default constructor
 
Method Summary
static ModulePluginList decode(java.io.Reader r, java.lang.String server)
          Takes the input reader of the XML file and instantiates an instance of the ModulePluginList class
 void encode(java.io.Writer w)
          Writes the ModuleRepository class to an output writer.
 JarURI[] getJarURIs()
           
 void setJarURIs(JarURI[] jarURIs)
           
 java.lang.String toString()
          Returns the list of repositories encoded as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModulePluginList

public ModulePluginList()
Default constructor

Method Detail

getJarURIs

public JarURI[] getJarURIs()

setJarURIs

public void setJarURIs(JarURI[] jarURIs)

toString

public java.lang.String toString()
Returns the list of repositories encoded as a string

Overrides:
toString in class java.lang.Object

decode

public static ModulePluginList decode(java.io.Reader r,
                                      java.lang.String server)
                               throws javax.xml.bind.JAXBException
Takes the input reader of the XML file and instantiates an instance of the ModulePluginList class

Parameters:
r - The input stream of the XML data
server - The server name and port as :
Throws:
javax.xml.bind.JAXBException

encode

public void encode(java.io.Writer w)
            throws javax.xml.bind.JAXBException
Writes the ModuleRepository class to an output writer.

Parameters:
w - The output writer to write to
Throws:
javax.xml.bind.JAXBException


Open Wonderland - http://openwonderland.org