public abstract class SessionBeanMetaDataParser<T extends AbstractGenericBeanMetaData> extends AbstractIdMetaDataParser<T>
#processElement(org.jboss.metadata.ejb.spec.SessionBeanMetaData, javax.xml.stream.XMLStreamReader, PropertyReplacer)
method to parse the version specific ejb-jar.xml elements
User: Jaikiran PaiMetaDataElementParser.DTDInfo
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
SessionBeanMetaDataParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
createSessionBeanMetaData()
Create and return the correct version of
SessionBeanMetaData
Individual ejb-jar version specific implementations of this class should
implement this method to return the appropriate version specific SessionBeanMetaData |
T |
parse(XMLStreamReader reader,
PropertyReplacer propertyReplacer)
Creates and returns
SessionBeanMetaData after parsing the session element. |
protected void |
processElement(T sessionBean,
XMLStreamReader reader,
PropertyReplacer propertyReplacer)
Parses common (version indepndent) ejb-jar.xml elements and updates the passed
ejb metadata appropriately |
protected SessionType |
processSessionType(String sessionType)
Returns the
SessionType corresponding to the passed sessionType string. |
processAttribute
processElements
attributeHasNamespace, consumeElementContent, duplicateNamedElement, equals, getElementText, getElementText, getElementText, getElementText, hashCode, missingRequired, missingRequiredElement, parseQName, readBooleanAttributeElement, readDTDLocation, readSchemaLocation, readStringAttributeElement, requireNoAttributes, requireNoContent, safeCopyMap, unexpectedAttribute, unexpectedElement, unexpectedValue
protected abstract T createSessionBeanMetaData()
SessionBeanMetaData
Individual ejb-jar version specific implementations of this class
should
implement this method to return the appropriate version specific SessionBeanMetaData
public T parse(XMLStreamReader reader, PropertyReplacer propertyReplacer) throws XMLStreamException
SessionBeanMetaData
after parsing the session element.parse
in class AbstractMetaDataParser<T extends AbstractGenericBeanMetaData>
reader
- XMLStreamException
protected void processElement(T sessionBean, XMLStreamReader reader, PropertyReplacer propertyReplacer) throws XMLStreamException
ejb metadata
appropriatelyprocessElement
in class AbstractMetaDataParser<T extends AbstractGenericBeanMetaData>
sessionBean
- The session bean metadatareader
- The XMLStreamReaderXMLStreamException
protected SessionType processSessionType(String sessionType)
SessionType
corresponding to the passed sessionType
string.
Returns null, if the passed sessionType
isn't one of the allowed values for the
<session-type> element in ejb-jar.xmlsessionType
- Copyright © 2016 JBoss by Red Hat. All rights reserved.