Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
Woodstox 6.4.0 - Source Code Files
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website.
You can download them from the "src/main/java" folder.
You can also browse Woodstox Source Code files below:
✍: FYIcenter
⏎ com/ctc/wstx/osgi/WstxBundleActivator.java
package com.ctc.wstx.osgi;
import java.util.Dictionary;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.codehaus.stax2.osgi.Stax2InputFactoryProvider;
import org.codehaus.stax2.osgi.Stax2OutputFactoryProvider;
import org.codehaus.stax2.osgi.Stax2ValidationSchemaFactoryProvider;
/**
* This class is responsible for registering OSGi service(s) that Woodstox
* package provides. Currently it means registering all providers that are
* needed to instantiate input, output and validation schema factories;
* these are needed since JDK service-introspection (which is the standard
* Stax instance instantiation mechanism) does not work with OSGi.
*/
public class WstxBundleActivator
implements BundleActivator
{
public WstxBundleActivator() { }
/**
* Method called on activation. We need to register all providers we have at
* this point.
*/
@SuppressWarnings("rawtypes") // for compatibility between older and new OSGi-core jars
@Override
public void start(BundleContext ctxt)
{
InputFactoryProviderImpl inputP = new InputFactoryProviderImpl();
final Dictionary inputProps = inputP.getProperties();
ctxt.registerService(Stax2InputFactoryProvider.class.getName(), inputP, inputProps);
OutputFactoryProviderImpl outputP = new OutputFactoryProviderImpl();
final Dictionary outputProps = outputP.getProperties();
ctxt.registerService(Stax2OutputFactoryProvider.class.getName(), outputP, outputProps);
ValidationSchemaFactoryProviderImpl[] impls = ValidationSchemaFactoryProviderImpl.createAll();
for (int i = 0, len = impls.length; i < len; ++i) {
ValidationSchemaFactoryProviderImpl impl = impls[i];
final Dictionary implProps = impl.getProperties();
ctxt.registerService(Stax2ValidationSchemaFactoryProvider.class.getName(), impl, implProps);
}
}
@Override
public void stop(BundleContext ctxt) {
// Nothing to do here: OSGi automatically de-registers services upon
// deactivation.
}
}
⏎ com/ctc/wstx/osgi/WstxBundleActivator.java
Or download all of them as a single archive file:
File name: woodstox-core-6.4.0-fyi.zip File size: 552992 bytes Release date: 2022-10-25 Download
⇒ woodstox-core-6.4.0.jar - Woodstox Core 6.4.0
⇐ What Is Woodstox XML Processing
2023-01-29, ≈66🔥, 0💬
Popular Posts:
What is the jaxp\TypeInfoWriter.java provided in the Apache Xerces package? I have Apache Xerces 2.1...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module. JDK 11 Desktop module compiled ...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...