Class VerifyMojo.FakeBundleRevision

  • All Implemented Interfaces:
    org.osgi.framework.BundleReference, org.osgi.framework.startlevel.BundleStartLevel, org.osgi.framework.wiring.BundleRevision, org.osgi.resource.Resource
    Enclosing class:
    VerifyMojo

    public static class VerifyMojo.FakeBundleRevision
    extends org.apache.felix.utils.resource.ResourceImpl
    implements org.osgi.framework.wiring.BundleRevision, org.osgi.framework.startlevel.BundleStartLevel
    • Constructor Detail

      • FakeBundleRevision

        public FakeBundleRevision​(Hashtable<String,​String> headers,
                                  String location,
                                  long bundleId)
                           throws org.osgi.framework.BundleException
        Throws:
        org.osgi.framework.BundleException
    • Method Detail

      • getStartLevel

        public int getStartLevel()
        Specified by:
        getStartLevel in interface org.osgi.framework.startlevel.BundleStartLevel
      • setStartLevel

        public void setStartLevel​(int startLevel)
        Specified by:
        setStartLevel in interface org.osgi.framework.startlevel.BundleStartLevel
      • isPersistentlyStarted

        public boolean isPersistentlyStarted()
        Specified by:
        isPersistentlyStarted in interface org.osgi.framework.startlevel.BundleStartLevel
      • isActivationPolicyUsed

        public boolean isActivationPolicyUsed()
        Specified by:
        isActivationPolicyUsed in interface org.osgi.framework.startlevel.BundleStartLevel
      • getSymbolicName

        public String getSymbolicName()
        Specified by:
        getSymbolicName in interface org.osgi.framework.wiring.BundleRevision
      • getVersion

        public org.osgi.framework.Version getVersion()
        Specified by:
        getVersion in interface org.osgi.framework.wiring.BundleRevision
      • getDeclaredCapabilities

        public List<org.osgi.framework.wiring.BundleCapability> getDeclaredCapabilities​(String namespace)
        Specified by:
        getDeclaredCapabilities in interface org.osgi.framework.wiring.BundleRevision
      • getDeclaredRequirements

        public List<org.osgi.framework.wiring.BundleRequirement> getDeclaredRequirements​(String namespace)
        Specified by:
        getDeclaredRequirements in interface org.osgi.framework.wiring.BundleRevision
      • getTypes

        public int getTypes()
        Specified by:
        getTypes in interface org.osgi.framework.wiring.BundleRevision
      • getWiring

        public org.osgi.framework.wiring.BundleWiring getWiring()
        Specified by:
        getWiring in interface org.osgi.framework.wiring.BundleRevision
      • getBundle

        public org.osgi.framework.Bundle getBundle()
        Specified by:
        getBundle in interface org.osgi.framework.BundleReference