Package org.apache.karaf.tooling
Class VerifyMojo.FakeBundleRevision
- java.lang.Object
-
- org.apache.felix.utils.resource.ResourceImpl
-
- org.apache.karaf.tooling.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 Summary
Constructors Constructor Description FakeBundleRevision(Hashtable<String,String> headers, String location, long bundleId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.osgi.framework.BundlegetBundle()List<org.osgi.framework.wiring.BundleCapability>getDeclaredCapabilities(String namespace)List<org.osgi.framework.wiring.BundleRequirement>getDeclaredRequirements(String namespace)intgetStartLevel()StringgetSymbolicName()intgetTypes()org.osgi.framework.VersiongetVersion()org.osgi.framework.wiring.BundleWiringgetWiring()booleanisActivationPolicyUsed()booleanisPersistentlyStarted()voidsetStartLevel(int startLevel)-
Methods inherited from class org.apache.felix.utils.resource.ResourceImpl
addCapabilities, addCapability, addRequirement, addRequirements, getCapabilities, getRequirements, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getStartLevel
public int getStartLevel()
- Specified by:
getStartLevelin interfaceorg.osgi.framework.startlevel.BundleStartLevel
-
setStartLevel
public void setStartLevel(int startLevel)
- Specified by:
setStartLevelin interfaceorg.osgi.framework.startlevel.BundleStartLevel
-
isPersistentlyStarted
public boolean isPersistentlyStarted()
- Specified by:
isPersistentlyStartedin interfaceorg.osgi.framework.startlevel.BundleStartLevel
-
isActivationPolicyUsed
public boolean isActivationPolicyUsed()
- Specified by:
isActivationPolicyUsedin interfaceorg.osgi.framework.startlevel.BundleStartLevel
-
getSymbolicName
public String getSymbolicName()
- Specified by:
getSymbolicNamein interfaceorg.osgi.framework.wiring.BundleRevision
-
getVersion
public org.osgi.framework.Version getVersion()
- Specified by:
getVersionin interfaceorg.osgi.framework.wiring.BundleRevision
-
getDeclaredCapabilities
public List<org.osgi.framework.wiring.BundleCapability> getDeclaredCapabilities(String namespace)
- Specified by:
getDeclaredCapabilitiesin interfaceorg.osgi.framework.wiring.BundleRevision
-
getDeclaredRequirements
public List<org.osgi.framework.wiring.BundleRequirement> getDeclaredRequirements(String namespace)
- Specified by:
getDeclaredRequirementsin interfaceorg.osgi.framework.wiring.BundleRevision
-
getTypes
public int getTypes()
- Specified by:
getTypesin interfaceorg.osgi.framework.wiring.BundleRevision
-
getWiring
public org.osgi.framework.wiring.BundleWiring getWiring()
- Specified by:
getWiringin interfaceorg.osgi.framework.wiring.BundleRevision
-
getBundle
public org.osgi.framework.Bundle getBundle()
- Specified by:
getBundlein interfaceorg.osgi.framework.BundleReference
-
-