|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.xml.internal.XMLParserActivator
org.jboss.osgi.xml.XMLParserActivatorExt
public class XMLParserActivatorExt
Activate the XML parser using XMLParserActivatorExt
| Field Summary |
|---|
| Fields inherited from class org.jboss.osgi.xml.internal.XMLParserActivator |
|---|
DOMCLASSFILE, DOMFACTORYNAME, PARSER_NAMESPACEAWARE, PARSER_VALIDATING, SAXCLASSFILE, SAXFACTORYNAME |
| Constructor Summary | |
|---|---|
XMLParserActivatorExt()
|
|
| Method Summary | |
|---|---|
void |
setDOMProperties(javax.xml.parsers.DocumentBuilderFactory factory,
java.util.Hashtable props)
Set the customizable DOM Parser Service Properties. |
void |
setSAXProperties(javax.xml.parsers.SAXParserFactory factory,
java.util.Hashtable props)
Set the customizable SAX Parser Service Properties. |
void |
start(BundleContext context)
Called when this bundle is started so the Framework can perform the bundle-specific activities necessary to start this bundle. |
| Methods inherited from class org.jboss.osgi.xml.internal.XMLParserActivator |
|---|
getService, stop, ungetService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLParserActivatorExt()
| Method Detail |
|---|
public void start(BundleContext context)
throws java.lang.Exception
org.jboss.osgi.xml.internal.XMLParserActivatorThis method must complete and return to its caller in a timely manner.
This method attempts to register a SAX and DOM parser with the Framework's service registry.
start in interface BundleActivatorstart in class org.jboss.osgi.xml.internal.XMLParserActivatorcontext - The execution context of the bundle being started.
java.lang.Exception - If this method throws an exception, this
bundle is marked as stopped and the Framework will remove this
bundle's listeners, unregister all services registered by this
bundle, and release all services used by this bundle.
public void setDOMProperties(javax.xml.parsers.DocumentBuilderFactory factory,
java.util.Hashtable props)
org.jboss.osgi.xml.internal.XMLParserActivatorSet the customizable DOM Parser Service Properties.
This method attempts to instantiate a validating parser and a namespaceaware parser to determine if the parser can support those features. The appropriate properties are then set in the specified props object.
This method can be overridden to add additional DOM2 features and properties. If you want to be able to filter searches of the OSGi service registry, this method must put a key, value pair into the properties object for each feature or property. For example, properties.put("http://www.acme.com/features/foo", Boolean.TRUE);
setDOMProperties in class org.jboss.osgi.xml.internal.XMLParserActivatorfactory - - the DocumentBuilderFactory objectprops - - Hashtable of service properties.
public void setSAXProperties(javax.xml.parsers.SAXParserFactory factory,
java.util.Hashtable props)
org.jboss.osgi.xml.internal.XMLParserActivatorSet the customizable SAX Parser Service Properties.
This method attempts to instantiate a validating parser and a namespaceaware parser to determine if the parser can support those features. The appropriate properties are then set in the specified properties object.
This method can be overridden to add additional SAX2 features and properties. If you want to be able to filter searches of the OSGi service registry, this method must put a key, value pair into the properties object for each feature or property. For example, properties.put("http://www.acme.com/features/foo", Boolean.TRUE);
setSAXProperties in class org.jboss.osgi.xml.internal.XMLParserActivatorfactory - - the SAXParserFactory objectprops - - the properties object for the service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||