|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgate.creole.CreoleAnnotationHandler
public class CreoleAnnotationHandler
Class to take a creole.xml file (as a JDOM tree) and add elements corresponding to the CREOLE annotations on the RESOURCE classes it declares.
| Constructor Summary | |
|---|---|
CreoleAnnotationHandler(URL creoleFileUrl)
Create an annotation handler for the given creole.xml file. |
|
| Method Summary | |
|---|---|
void |
addJarsToClassLoader(org.jdom.Document jdomDoc)
Extract all JAR elements from the given JDOM document and add the jars they reference to the GateClassLoader. |
void |
createResourceElementsForDirInfo(org.jdom.Document jdomDoc)
Fetches the directory information for this handler's creole plugin and adds additional RESOURCE elements to the given JDOM document so that it contains a RESOURCE for every resource type defined in the plugin's directory info. |
void |
processAnnotations(org.jdom.Document jdomDoc)
Processes annotations for resource classes named in the given creole.xml document, adding the relevant XML elements to the document as appropriate. |
void |
processCreoleResourceAnnotations(org.jdom.Element element,
Class<?> resourceClass)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CreoleAnnotationHandler(URL creoleFileUrl)
creoleFileUrl - location of the creole.xml file.| Method Detail |
|---|
public void addJarsToClassLoader(org.jdom.Document jdomDoc)
throws MalformedURLException
jdomDoc - JDOM document representing a parsed creole.xml file.
MalformedURLException
public void createResourceElementsForDirInfo(org.jdom.Document jdomDoc)
throws MalformedURLException
jdomDoc - JDOM document which should be the parsed creole.xml
that this handler was configured for.
MalformedURLException
public void processAnnotations(org.jdom.Document jdomDoc)
throws GateException
jdomDoc - the parsed creole.xml file
GateException
public void processCreoleResourceAnnotations(org.jdom.Element element,
Class<?> resourceClass)
throws GateException
GateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||