Package org.apache.felix.scr.impl.xml
Class XmlHandler
- java.lang.Object
-
- org.apache.felix.scr.impl.xml.XmlHandler
-
- All Implemented Interfaces:
KXml2SAXHandler
public class XmlHandler extends Object implements KXml2SAXHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIGURABLE_SERVICE_PROPERTIESstatic StringCONFIGURE_WITH_INTERFACESstatic StringDELAYED_KEEP_INSTANCESstatic StringDELETE_CALLS_MODIFYstatic intDS_VERSION_1_0static intDS_VERSION_1_1static intDS_VERSION_1_1_FELIXstatic intDS_VERSION_1_2static intDS_VERSION_1_2_FELIXstatic intDS_VERSION_1_3static intDS_VERSION_NONEprotected booleanfirstElementFlag for detecting the first element.protected booleanisComponentFlag for elements inside a component elementstatic StringNAMESPACE_URIstatic StringNAMESPACE_URI_1_0_FELIX_EXTENSIONSstatic StringNAMESPACE_URI_1_1static StringNAMESPACE_URI_1_1_FELIXstatic StringNAMESPACE_URI_1_2static StringNAMESPACE_URI_1_2_FELIXstatic StringNAMESPACE_URI_1_3static StringNAMESPACE_URI_EMPTYstatic StringOBSOLETE_FACTORY_COMPONENT_FACTORYprotected StringoverrideNamespaceOverride namespace.static StringPERSISTENT_FACTORY_COMPONENT
-
Constructor Summary
Constructors Constructor Description XmlHandler(org.osgi.framework.Bundle bundle, Logger logger, boolean globalObsoleteFactoryComponentFactory, boolean globalDelayedKeepInstances)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(String text)Method called when parsing textvoidendElement(String uri, String localName)Method called when a tag closesList<ComponentMetadata>getComponentMetadataList()Called to retrieve the service descriptorsvoidprocessingInstruction(String target, String data)voidsetColumnNumber(int columnNumber)voidsetLineNumber(int lineNumber)voidstartElement(String uri, String localName, KXml2SAXParser.Attributes attributes)Method called when a tag opens
-
-
-
Field Detail
-
NAMESPACE_URI_EMPTY
public static final String NAMESPACE_URI_EMPTY
- See Also:
- Constant Field Values
-
NAMESPACE_URI
public static final String NAMESPACE_URI
- See Also:
- Constant Field Values
-
NAMESPACE_URI_1_1
public static final String NAMESPACE_URI_1_1
- See Also:
- Constant Field Values
-
NAMESPACE_URI_1_1_FELIX
public static final String NAMESPACE_URI_1_1_FELIX
- See Also:
- Constant Field Values
-
NAMESPACE_URI_1_2
public static final String NAMESPACE_URI_1_2
- See Also:
- Constant Field Values
-
NAMESPACE_URI_1_2_FELIX
public static final String NAMESPACE_URI_1_2_FELIX
- See Also:
- Constant Field Values
-
NAMESPACE_URI_1_3
public static final String NAMESPACE_URI_1_3
- See Also:
- Constant Field Values
-
NAMESPACE_URI_1_0_FELIX_EXTENSIONS
public static final String NAMESPACE_URI_1_0_FELIX_EXTENSIONS
- See Also:
- Constant Field Values
-
CONFIGURABLE_SERVICE_PROPERTIES
public static final String CONFIGURABLE_SERVICE_PROPERTIES
- See Also:
- Constant Field Values
-
PERSISTENT_FACTORY_COMPONENT
public static final String PERSISTENT_FACTORY_COMPONENT
- See Also:
- Constant Field Values
-
DELETE_CALLS_MODIFY
public static final String DELETE_CALLS_MODIFY
- See Also:
- Constant Field Values
-
OBSOLETE_FACTORY_COMPONENT_FACTORY
public static final String OBSOLETE_FACTORY_COMPONENT_FACTORY
- See Also:
- Constant Field Values
-
CONFIGURE_WITH_INTERFACES
public static final String CONFIGURE_WITH_INTERFACES
- See Also:
- Constant Field Values
-
DELAYED_KEEP_INSTANCES
public static final String DELAYED_KEEP_INSTANCES
- See Also:
- Constant Field Values
-
DS_VERSION_NONE
public static final int DS_VERSION_NONE
- See Also:
- Constant Field Values
-
DS_VERSION_1_0
public static final int DS_VERSION_1_0
- See Also:
- Constant Field Values
-
DS_VERSION_1_1
public static final int DS_VERSION_1_1
- See Also:
- Constant Field Values
-
DS_VERSION_1_1_FELIX
public static final int DS_VERSION_1_1_FELIX
- See Also:
- Constant Field Values
-
DS_VERSION_1_2
public static final int DS_VERSION_1_2
- See Also:
- Constant Field Values
-
DS_VERSION_1_2_FELIX
public static final int DS_VERSION_1_2_FELIX
- See Also:
- Constant Field Values
-
DS_VERSION_1_3
public static final int DS_VERSION_1_3
- See Also:
- Constant Field Values
-
firstElement
protected boolean firstElement
Flag for detecting the first element.
-
overrideNamespace
protected String overrideNamespace
Override namespace.
-
isComponent
protected boolean isComponent
Flag for elements inside a component element
-
-
Constructor Detail
-
XmlHandler
public XmlHandler(org.osgi.framework.Bundle bundle, Logger logger, boolean globalObsoleteFactoryComponentFactory, boolean globalDelayedKeepInstances)
-
-
Method Detail
-
getComponentMetadataList
public List<ComponentMetadata> getComponentMetadataList()
Called to retrieve the service descriptors- Returns:
- A list of service descriptors
-
startElement
public void startElement(String uri, String localName, KXml2SAXParser.Attributes attributes) throws ParseException
Method called when a tag opens- Specified by:
startElementin interfaceKXml2SAXHandler- Parameters:
uri-localName-attributes-- Throws:
ParseException
-
endElement
public void endElement(String uri, String localName)
Method called when a tag closes- Specified by:
endElementin interfaceKXml2SAXHandler- Parameters:
uri-localName-
-
characters
public void characters(String text)
Description copied from interface:KXml2SAXHandlerMethod called when parsing text- Specified by:
charactersin interfaceKXml2SAXHandler- See Also:
KXml2SAXHandler.characters(java.lang.String)
-
processingInstruction
public void processingInstruction(String target, String data)
- Specified by:
processingInstructionin interfaceKXml2SAXHandler- See Also:
KXml2SAXHandler.processingInstruction(java.lang.String, java.lang.String)
-
setLineNumber
public void setLineNumber(int lineNumber)
- Specified by:
setLineNumberin interfaceKXml2SAXHandler- See Also:
KXml2SAXHandler.setLineNumber(int)
-
setColumnNumber
public void setColumnNumber(int columnNumber)
- Specified by:
setColumnNumberin interfaceKXml2SAXHandler- See Also:
KXml2SAXHandler.setColumnNumber(int)
-
-