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 String
CONFIGURABLE_SERVICE_PROPERTIES
static String
CONFIGURE_WITH_INTERFACES
static String
DELAYED_KEEP_INSTANCES
static String
DELETE_CALLS_MODIFY
static int
DS_VERSION_1_0
static int
DS_VERSION_1_1
static int
DS_VERSION_1_1_FELIX
static int
DS_VERSION_1_2
static int
DS_VERSION_1_2_FELIX
static int
DS_VERSION_1_3
static int
DS_VERSION_NONE
protected boolean
firstElement
Flag for detecting the first element.protected boolean
isComponent
Flag for elements inside a component elementstatic String
NAMESPACE_URI
static String
NAMESPACE_URI_1_0_FELIX_EXTENSIONS
static String
NAMESPACE_URI_1_1
static String
NAMESPACE_URI_1_1_FELIX
static String
NAMESPACE_URI_1_2
static String
NAMESPACE_URI_1_2_FELIX
static String
NAMESPACE_URI_1_3
static String
NAMESPACE_URI_EMPTY
static String
OBSOLETE_FACTORY_COMPONENT_FACTORY
protected String
overrideNamespace
Override namespace.static String
PERSISTENT_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 void
characters(String text)
Method called when parsing textvoid
endElement(String uri, String localName)
Method called when a tag closesList<ComponentMetadata>
getComponentMetadataList()
Called to retrieve the service descriptorsvoid
processingInstruction(String target, String data)
void
setColumnNumber(int columnNumber)
void
setLineNumber(int lineNumber)
void
startElement(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:
startElement
in interfaceKXml2SAXHandler
- Parameters:
uri
-localName
-attributes
-- Throws:
ParseException
-
endElement
public void endElement(String uri, String localName)
Method called when a tag closes- Specified by:
endElement
in interfaceKXml2SAXHandler
- Parameters:
uri
-localName
-
-
characters
public void characters(String text)
Description copied from interface:KXml2SAXHandler
Method called when parsing text- Specified by:
characters
in interfaceKXml2SAXHandler
- See Also:
KXml2SAXHandler.characters(java.lang.String)
-
processingInstruction
public void processingInstruction(String target, String data)
- Specified by:
processingInstruction
in interfaceKXml2SAXHandler
- See Also:
KXml2SAXHandler.processingInstruction(java.lang.String, java.lang.String)
-
setLineNumber
public void setLineNumber(int lineNumber)
- Specified by:
setLineNumber
in interfaceKXml2SAXHandler
- See Also:
KXml2SAXHandler.setLineNumber(int)
-
setColumnNumber
public void setColumnNumber(int columnNumber)
- Specified by:
setColumnNumber
in interfaceKXml2SAXHandler
- See Also:
KXml2SAXHandler.setColumnNumber(int)
-
-