Class BundleContextAtomos

  • All Implemented Interfaces:
    java.util.function.BiFunction<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>>, org.apache.felix.atomos.Atomos.HeaderProvider

    public class BundleContextAtomos
    extends java.lang.Object
    implements org.apache.felix.atomos.Atomos.HeaderProvider
    Starts an OSGi context using Atomos.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> apply​(java.lang.String location, java.util.Map<java.lang.String,​java.lang.String> existingHeaders)  
      java.util.Map<java.lang.String,​java.lang.String> atomosHeaders​(SolsticeManifest manifest)  
      static org.osgi.framework.BundleContext hydrate​(Solstice bundleSet, java.util.Map<java.lang.String,​java.lang.String> props)  
      static void urlWorkaround​(Solstice solstice)
      https://github.com/eclipse-equinox/equinox/issues/179
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiFunction

        andThen
    • Method Detail

      • apply

        public java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>> apply​(java.lang.String location,
                                                                                                java.util.Map<java.lang.String,​java.lang.String> existingHeaders)
        Specified by:
        apply in interface org.apache.felix.atomos.Atomos.HeaderProvider
        Specified by:
        apply in interface java.util.function.BiFunction<java.lang.String,​java.util.Map<java.lang.String,​java.lang.String>,​java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>>
      • atomosHeaders

        public java.util.Map<java.lang.String,​java.lang.String> atomosHeaders​(SolsticeManifest manifest)
      • hydrate

        public static org.osgi.framework.BundleContext hydrate​(Solstice bundleSet,
                                                               java.util.Map<java.lang.String,​java.lang.String> props)
                                                        throws org.osgi.framework.BundleException
        Throws:
        org.osgi.framework.BundleException
      • urlWorkaround

        public static void urlWorkaround​(Solstice solstice)
                                  throws org.osgi.framework.InvalidSyntaxException
        https://github.com/eclipse-equinox/equinox/issues/179
        Throws:
        org.osgi.framework.InvalidSyntaxException