edu.yale.emailet
Class ClassRepository

java.lang.Object
  |
  +--edu.yale.emailet.ClassRepository

public class ClassRepository
extends java.lang.Object

Author:
Hong Jiang Manages a class repository in local disk. The classes in the repository are used to compose Emailets.

Constructor Summary
ClassRepository()
          The default constructor will set the repository path to the value of the emailet.repository property.
ClassRepository(java.lang.String path)
           
 
Method Summary
 InlineClass getInlineClass(java.lang.String name)
          Look for a class in the repository and return an InlineClass object which contain the name and byte code of the class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassRepository

public ClassRepository(java.lang.String path)
Parameters:
path - The path of the class repository, without the trailing "/".

ClassRepository

public ClassRepository()
The default constructor will set the repository path to the value of the emailet.repository property.

Method Detail

getInlineClass

public InlineClass getInlineClass(java.lang.String name)
                           throws java.io.IOException
Look for a class in the repository and return an InlineClass object which contain the name and byte code of the class.

Parameters:
name - Name of the class looked for
Returns:
an InlineClass object containing the name and byte code of the class, or null if not found.
java.io.IOException