Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/osgi
diff options
context:
space:
mode:
authorslewis2018-04-23 18:52:43 -0400
committerslewis2018-04-23 18:52:43 -0400
commitc800f820347ea901856cb20af95506b7235d3808 (patch)
tree7833189338e8c71d550da65f90bc71901248a960 /osgi
parentcd87854d152a3d5a4b1ebb36bad59e81e051e5a4 (diff)
downloadorg.eclipse.ecf-c800f820347ea901856cb20af95506b7235d3808.tar.gz
org.eclipse.ecf-c800f820347ea901856cb20af95506b7235d3808.tar.xz
org.eclipse.ecf-c800f820347ea901856cb20af95506b7235d3808.zip
Added support for sax parser factory service registration on Felix
Diffstat (limited to 'osgi')
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF2
-rw-r--r--osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java7
2 files changed, 8 insertions, 1 deletions
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF
index cc5d5d660..f1400f7fc 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: %bundle.name
Bundle-SymbolicName: org.eclipse.ecf.osgi.services.remoteserviceadmin
Automatic-Module-Name: org.eclipse.ecf.osgi.services.remoteserviceadmin
-Bundle-Version: 4.6.300.qualifier
+Bundle-Version: 4.6.400.qualifier
Bundle-Activator: org.eclipse.ecf.internal.osgi.services.remoteserviceadmin.Activator
Bundle-Vendor: %bundle.provider
Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java
index 8b64ca40c..3ce902f0f 100644
--- a/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java
+++ b/osgi/bundles/org.eclipse.ecf.osgi.services.remoteserviceadmin/src/org/eclipse/ecf/internal/osgi/services/remoteserviceadmin/Activator.java
@@ -228,6 +228,11 @@ public class Activator implements BundleActivator {
}
}
+ private void initializeSAXParserFactory() {
+ ServiceReference<?> ref = Activator.context.getServiceReference(SAXParserFactory.class.getName());
+ if (ref == null)
+ Activator.context.registerService(SAXParserFactory.class.getName(), SAXParserFactory.newInstance(), null);
+ }
/*
* (non-Javadoc)
*
@@ -248,6 +253,8 @@ public class Activator implements BundleActivator {
// approach/using the ServiceFactory extender approach for this purpose:
// https://mail.osgi.org/pipermail/osgi-dev/2011-February/003000.html
initializeProxyServiceFactoryBundle();
+ // initialize sax parser factory if necessary
+ initializeSAXParserFactory();
// Start distribution providers if not already started
initializeProviders(context.getBundle(), DistributionNamespace.DISTRIBUTION_NAMESPACE,
"Could not start distribution provider. "); //$NON-NLS-1$

Back to the top