Skip to content
Permalink
Browse files

Mark resolution of LoggerFactorySupplier as optional in OSGi.

FallbackLoggerFactorySupplier will be used in case such resolution was not successful.
  • Loading branch information...
isartcanyameres committed Feb 4, 2015
1 parent b23f689 commit 85f336d59f6a04e293f1851757ddaf7d05114fbd
Showing with 9 additions and 4 deletions.
  1. +1 −1 core/pom.xml
  2. +8 −3 src/main/resources/features.xml
@@ -91,7 +91,7 @@
<Require-Capability>
osgi.serviceloader; filter:="(osgi.serviceloader=org.openstack4j.api.APIProvider)";cardinality:=multiple,
osgi.serviceloader; filter:="(osgi.serviceloader=org.openstack4j.core.transport.HttpExecutorService)";cardinality:=multiple,
osgi.serviceloader; filter:="(osgi.serviceloader=org.openstack4j.openstack.logging.LoggerFactorySupplier)";cardinality:=multiple,
osgi.serviceloader; filter:="(osgi.serviceloader=org.openstack4j.openstack.logging.LoggerFactorySupplier)";cardinality:=multiple;resolution:=optional,
osgi.extender; filter:="(osgi.extender=osgi.serviceloader.processor)",
osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"
</Require-Capability>
@@ -1,13 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.2.0" name="openstack4j">

<feature name="openstack4j-httpclient-log4j" version="${project.version}">
<feature version="${project.version}">openstack4j-httpclient</feature>
<feature version="${project.version}">openstack4j-plugin-log4j</feature>
</feature>

<!--
Due to SPI in OSGi requirements, at least one provider for an HTTPExecutorService and another for LoggerFactorySupplier
Due to SPI in OSGi requirements, at least one provider for an HTTPExecutorService
must be present in the OSGi container for the core to be successfully resolved.
-->
<feature name="openstack4j-httpclient-log4j" version="${project.version}">
<feature name="openstack4j-httpclient" version="${project.version}">
<feature version="${project.version}">openstack4j-core</feature>
<feature version="${project.version}">openstack4j-connector-httpclient</feature>
<feature version="${project.version}">openstack4j-plugin-log4j</feature>
</feature>

<!--

0 comments on commit 85f336d

Please sign in to comment.
You can’t perform that action at this time.