javolution.osgi.internal.XMLInputFactoryProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javolution-core-java-msftbx Show documentation
Show all versions of javolution-core-java-msftbx Show documentation
Only the Java Core part of Javolution library, with slight modifications for use in MSFTBX.
/*
* Javolution - Java(TM) Solution for Real-Time and Embedded Systems
* Copyright (C) 2012 - Javolution (http://javolution.org/)
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software is
* freely granted, provided that this notice is preserved.
*/
package javolution.osgi.internal;
import javolution.xml.internal.stream.XMLInputFactoryImpl;
import javolution.xml.stream.XMLInputFactory;
import org.osgi.framework.Bundle;
import org.osgi.framework.ServiceFactory;
import org.osgi.framework.ServiceRegistration;
/**
* Holds the service factory providing XMLInputFactory instances.
*/
public final class XMLInputFactoryProvider implements ServiceFactory {
@Override
public XMLInputFactory getService(Bundle bundle,
ServiceRegistration registration) {
return new XMLInputFactoryImpl();
}
@Override
public void ungetService(Bundle bundle,
ServiceRegistration registration,
XMLInputFactory service) {
}
}