public class CreoleAnnotationHandler extends Object
Constructor and Description |
---|
CreoleAnnotationHandler(Plugin plugin)
Create an annotation handler for the given plugin
|
Modifier and Type | Method and Description |
---|---|
void |
addJarsToClassLoader(GateClassLoader gcl,
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 |
loadRequiredPlugins(org.jdom.Document jdomDoc)
Deprecated.
|
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) |
public CreoleAnnotationHandler(Plugin plugin)
plugin
- the plugin we are to processpublic void addJarsToClassLoader(GateClassLoader gcl, org.jdom.Document jdomDoc) throws IOException
jdomDoc
- JDOM document representing a parsed creole.xml file.IOException
@Deprecated public void loadRequiredPlugins(org.jdom.Document jdomDoc) throws IOException
jdomDoc
- JDOM document representing a parsed creole.xml file.IOException
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 fileGateException
public void processCreoleResourceAnnotations(org.jdom.Element element, Class<?> resourceClass) throws GateException
GateException
Copyright © 2024 GATE. All rights reserved.