ccs.cpc.impl
Class ViewerRegistry

java.lang.Object
  extended by ccs.cpc.impl.ViewerRegistry

public class ViewerRegistry
extends java.lang.Object


Constructor Summary
ViewerRegistry()
          Creates an empty registry.
 
Method Summary
 void clearLoaders()
           
 Viewer[] getFileCapableViewers()
           
 Viewer[] getHelperApps()
           
 Viewer[] getNoFileCapableViewers()
           
 Viewer[] getPlugins()
           
 Viewer[] getViewers()
           
 java.lang.Class loadClass(java.lang.String classname)
           
 void loadDefault()
          loads the default set of Viewers into the registry.
 void marshalTo(java.io.DataOutputStream dest)
           
 void register(Viewer vv)
          Add a Viewer to the registry.
 void registerLoader(java.lang.ClassLoader loader)
           
 void unmarshalFrom(java.io.DataInputStream src, int marshalver)
          Unmarshals the Viewer registry from the supplied stream.
 void unregister(Viewer vv)
           
 Viewer viewerForID(java.lang.String viewerID)
          Return a viewer based on its ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewerRegistry

public ViewerRegistry()
Creates an empty registry.

Method Detail

register

public void register(Viewer vv)
              throws ccs.LoseException
Add a Viewer to the registry.

Throws:
ccs.LoseException

unregister

public void unregister(Viewer vv)

viewerForID

public Viewer viewerForID(java.lang.String viewerID)
Return a viewer based on its ID.


getViewers

public Viewer[] getViewers()

getFileCapableViewers

public Viewer[] getFileCapableViewers()

getNoFileCapableViewers

public Viewer[] getNoFileCapableViewers()

getHelperApps

public Viewer[] getHelperApps()

getPlugins

public Viewer[] getPlugins()

registerLoader

public void registerLoader(java.lang.ClassLoader loader)

clearLoaders

public void clearLoaders()

loadClass

public java.lang.Class loadClass(java.lang.String classname)

marshalTo

public void marshalTo(java.io.DataOutputStream dest)
               throws java.io.IOException
Throws:
java.io.IOException

unmarshalFrom

public void unmarshalFrom(java.io.DataInputStream src,
                          int marshalver)
                   throws java.io.IOException
Unmarshals the Viewer registry from the supplied stream.

Parameters:
src - The stream to unmarshal from.
marshalver - the marshal version of the ProfileModel object this is stored in.
Throws:
java.io.IOException - If thrown by the stream.

loadDefault

public void loadDefault()
                 throws ccs.LoseException,
                        java.io.IOException
loads the default set of Viewers into the registry. The registry should usually be empty at this point.

Throws:
ccs.LoseException - If there is a conflict with any pre-existing types.
java.io.IOException - If there is an I/O failure during the load.