|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.yale.emailet.EmailetDocComposer
This class is responsible for assembling Emailet object into EmailetDoc object by gathering all required classes and pack them together. It will find the required classes from a local repository (on disk) and a temporary repository of a class loader.
Constructor Summary | |
EmailetDocComposer()
|
Method Summary | |
protected InlineClass[] |
collectRequiredClasses(java.lang.String name)
Collect all classes referenced by a given class. |
EmailetDoc |
createEmailetDoc(Emailet emailet)
|
EmailetClassLoader |
getClassLoader()
|
ClassRepository |
getClassRepository()
Get the class repository |
static void |
main(java.lang.String[] args)
|
void |
setClassLoader(EmailetClassLoader loader)
|
void |
setClassRepository(ClassRepository repository)
Set the class repository |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EmailetDocComposer()
Method Detail |
public EmailetDoc createEmailetDoc(Emailet emailet) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
protected InlineClass[] collectRequiredClasses(java.lang.String name) throws java.io.IOException, java.lang.ClassNotFoundException
name
- Name of the class to be analyzed.
java.io.IOException
java.lang.ClassNotFoundException
public EmailetClassLoader getClassLoader()
public ClassRepository getClassRepository()
public void setClassLoader(EmailetClassLoader loader)
loader
- The instance of EmailetClassLoader used to load incoming emailets.public void setClassRepository(ClassRepository repository)
repository
- The class replository which contains the local classes
used by various emailets. Some of them need to be packaged with
the referencing Emailet object to form an EmailetDoc object.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |