
com.ctc.wstx.osgi.OutputFactoryProviderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hello-world-plugin Show documentation
Show all versions of hello-world-plugin Show documentation
Kill Bill Hello World plugin
The newest version!
package com.ctc.wstx.osgi;
import java.util.Properties;
import org.codehaus.stax2.XMLOutputFactory2;
import org.codehaus.stax2.osgi.Stax2OutputFactoryProvider;
import com.ctc.wstx.api.ReaderConfig;
import com.ctc.wstx.stax.WstxOutputFactory;
public class OutputFactoryProviderImpl
implements Stax2OutputFactoryProvider
{
@Override
public XMLOutputFactory2 createOutputFactory() {
return new WstxOutputFactory();
}
protected Properties getProperties()
{
Properties props = new Properties();
props.setProperty(OSGI_SVC_PROP_IMPL_NAME, ReaderConfig.getImplName());
props.setProperty(OSGI_SVC_PROP_IMPL_VERSION, ReaderConfig.getImplVersion());
return props;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy