Package org.apache.felix.scr.impl.xml
Class XmlHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.felix.scr.impl.xml.XmlHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
XML Parser for the component XML
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag for detecting the first element.protected booleanFlag for elements inside a component elementprotected StringOverride namespace. -
Constructor Summary
ConstructorsConstructorDescriptionXmlHandler(org.osgi.framework.Bundle bundle, BundleLogger logger, boolean globalObsoleteFactoryComponentFactory, boolean globalDelayedKeepInstances) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String qName) Called to retrieve the service descriptorsvoidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
firstElement
protected boolean firstElementFlag for detecting the first element. -
overrideNamespace
Override namespace. -
isComponent
protected boolean isComponentFlag for elements inside a component element
-
-
Constructor Details
-
XmlHandler
public XmlHandler(org.osgi.framework.Bundle bundle, BundleLogger logger, boolean globalObsoleteFactoryComponentFactory, boolean globalDelayedKeepInstances)
-
-
Method Details
-
getComponentMetadataList
Called to retrieve the service descriptors- Returns:
- A list of service descriptors
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-