Deprecated
as a consequence of HandlerBase being deprecated. See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| protected String | currentElement
Instance variable used to store the name of the current element being processed by the SAX parser. |
| protected String | currentText
The text of the current element |
| private static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | EJB_REF
Bunch of constants used for storing entries in a hashtable, and for constructing the filenames of various parts of the ejb jar. |
| protected Hashtable | ejbFiles
Instance variable that stores the names of the files as they will be put into the jar file, mapped to File objects Accessed by the SAX parser call-back method characters(). |
| protected String | ejbName
Instance variable that stores the value found in the <ejb-name> element |
| private static final String | |
| private static final String | |
| private Map | |
| private static final String | |
| private boolean | |
| private static final String | |
| private static final String | |
| private static final String | |
| private Task | |
| private int | parseState
The state of the parsing |
| private static final String | |
| private String | |
| private static final String | |
| private Map | |
| private static final String | |
| private File | srcDir
The directory containing the bean classes and interfaces. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | DescriptorHandler(Task
the task that owns this descriptor task, File the source directory srcDir)Constructor for DescriptorHandler. |
| Modifier and Type | Method and Description |
|---|---|
| public void | characters(char[]
A character array containing all the characters in
the element, and maybe others that should be ignored. ch, int An integer marking the position in the char
array to start reading from. start, int An integer representing an offset into the
char array where the current data terminates. length)Overrides org. Implements org. |
| public void | endElement(String
The name of the attribute being exited. Ignored
in this implementation. name)Overrides org. Implements org. |
| public String | |
| public Hashtable | Returns: the map of filesGetter method that returns the set of files to include in the EJB jar. |
| public String | |
| protected void | |
| public void | registerDTD(String
the public identity of the dtd publicId, String the location of the dtd location)Register a dtd with a location. |
| public InputSource | Returns: an inputsource for this identifierThe public identifier, or publicId, String null
if none is available.The system identifier provided in the XML
document. Will not be systemId)null.Overrides org. Implements org. |
| public void | startDocument()
Overrides org. Implements org. |
| public void | startElement(String
The name of the element being entered. name, AttributeList Attributes associated to the element. attrs)Overrides org. Implements org.
Deprecated
as a consequence of
SAX parser call-back method that is invoked when a new element is entered
into.
AttributeList being deprecated.
|
| BEAN_CLASS | back to summary |
|---|---|
| private static final String BEAN_CLASS | |
| currentElement | back to summary |
|---|---|
| protected String currentElement Instance variable used to store the name of the current element being processed by the SAX parser. Accessed by the SAX parser call-back methods startElement() and endElement(). | |
| currentText | back to summary |
|---|---|
| protected String currentText The text of the current element | |
| DEFAULT_HASH_TABLE_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_HASH_TABLE_SIZE | |
| EJB_JAR | back to summary |
|---|---|
| private static final String EJB_JAR | |
| EJB_LOCAL_REF | back to summary |
|---|---|
| private static final String EJB_LOCAL_REF | |
| EJB_NAME | back to summary |
|---|---|
| private static final String EJB_NAME | |
| EJB_REF | back to summary |
|---|---|
| private static final String EJB_REF Bunch of constants used for storing entries in a hashtable, and for constructing the filenames of various parts of the ejb jar. | |
| ejbFiles | back to summary |
|---|---|
| protected Hashtable<String, File> ejbFiles Instance variable that stores the names of the files as they will be put into the jar file, mapped to File objects Accessed by the SAX parser call-back method characters(). | |
| ejbName | back to summary |
|---|---|
| protected String ejbName Instance variable that stores the value found in the <ejb-name> element | |
| ENTERPRISE_BEANS | back to summary |
|---|---|
| private static final String ENTERPRISE_BEANS | |
| ENTITY_BEAN | back to summary |
|---|---|
| private static final String ENTITY_BEAN | |
| fileDTDs | back to summary |
|---|---|
| private Map<String, File> fileDTDs | |
| HOME_INTERFACE | back to summary |
|---|---|
| private static final String HOME_INTERFACE | |
| inEJBRef | back to summary |
|---|---|
| private boolean inEJBRef | |
| LOCAL_HOME_INTERFACE | back to summary |
|---|---|
| private static final String LOCAL_HOME_INTERFACE | |
| LOCAL_INTERFACE | back to summary |
|---|---|
| private static final String LOCAL_INTERFACE | |
| MESSAGE_BEAN | back to summary |
|---|---|
| private static final String MESSAGE_BEAN | |
| owningTask | back to summary |
|---|---|
| private Task owningTask | |
| parseState | back to summary |
|---|---|
| private int parseState The state of the parsing | |
| PK_CLASS | back to summary |
|---|---|
| private static final String PK_CLASS | |
| publicId | back to summary |
|---|---|
| private String publicId | |
| REMOTE_INTERFACE | back to summary |
|---|---|
| private static final String REMOTE_INTERFACE | |
| resourceDTDs | back to summary |
|---|---|
| private Map<String, String> resourceDTDs | |
| SESSION_BEAN | back to summary |
|---|---|
| private static final String SESSION_BEAN | |
| srcDir | back to summary |
|---|---|
| private File srcDir The directory containing the bean classes and interfaces. This is used for performing dependency file lookups. | |
| STATE_IN_BEANS | back to summary |
|---|---|
| private static final int STATE_IN_BEANS | |
| STATE_IN_EJBJAR | back to summary |
|---|---|
| private static final int STATE_IN_EJBJAR | |
| STATE_IN_ENTITY | back to summary |
|---|---|
| private static final int STATE_IN_ENTITY | |
| STATE_IN_MESSAGE | back to summary |
|---|---|
| private static final int STATE_IN_MESSAGE | |
| STATE_IN_SESSION | back to summary |
|---|---|
| private static final int STATE_IN_SESSION | |
| STATE_LOOKING_EJBJAR | back to summary |
|---|---|
| private static final int STATE_LOOKING_EJBJAR | |
| urlDTDs | back to summary |
|---|---|
| private Map<String, URL> urlDTDs | |
| DescriptorHandler | back to summary |
|---|---|
| public DescriptorHandler(Task task, File srcDir) Constructor for DescriptorHandler. | |
| characters | back to summary |
|---|---|
| public void characters(char[] ch, int start, int length) throws SAXException Overrides org. Implements org. SAX parser call-back method invoked whenever characters are located within an element. currentAttribute (modified by startElement and endElement) tells us whether we are in an interesting element (one of the up to four classes of an EJB). If so then converts the classname from the format org.apache.tools.ant.Parser to the convention for storing such a class, org/apache/tools/ant/Parser.class. This is then resolved into a file object under the srcdir which is stored in a Hashtable.
| |
| endElement | back to summary |
|---|---|
| public void endElement(String name) throws SAXException Overrides org. Implements org. SAX parser call-back method that is invoked when an element is exited. Used to blank out (set to the empty string, not nullify) the name of the currentAttribute. A better method would be to use a stack as an instance variable, however since we are only interested in leaf-node data this is a simpler and workable solution.
| |
| getEjbName | back to summary |
|---|---|
| public String getEjbName() Getter method that returns the value of the <ejb-name> element.
| |
| getFiles | back to summary |
|---|---|
| public Hashtable Getter method that returns the set of files to include in the EJB jar. | |
| getPublicId | back to summary |
|---|---|
| public String getPublicId() Get the publicId of the DTD
| |
| processElement | back to summary |
|---|---|
| protected void processElement() Called when an endelement is seen. This may be overridden in derived classes. This updates the ejbfiles if the element is an interface or a bean class. This updates the ejbname if the element is an ejb name. | |
| registerDTD | back to summary |
|---|---|
| public void registerDTD(String publicId, String location) Register a dtd with a location. The location is one of a filename, a resource name in the classpath, or a URL. | |
| resolveEntity | back to summary |
|---|---|
| public InputSource resolveEntity(String publicId, String systemId) throws SAXException Overrides org. Implements org. Resolve the entity.
| |
| startDocument | back to summary |
|---|---|
| public void startDocument() throws SAXException Overrides org. Implements org. SAX parser call-back method that is used to initialize the values of some instance variables to ensure safe operation.
| |
| startElement | back to summary |
|---|---|
| public void startElement(String name, AttributeList attrs) throws SAXException Overrides org. Implements org. Deprecated as a consequence of SAX parser call-back method that is invoked when a new element is entered into. Used to store the context (attribute name) in the currentAttribute instance variable.
| |