Package com.yahoo.container.bundle
Class MockBundle
java.lang.Object
com.yahoo.container.bundle.MockBundle
- All Implemented Interfaces:
Comparable<org.osgi.framework.Bundle>,org.osgi.framework.Bundle,org.osgi.framework.BundleReference,org.osgi.framework.wiring.BundleWiring,org.osgi.resource.Wiring
public class MockBundle
extends Object
implements org.osgi.framework.Bundle, org.osgi.framework.wiring.BundleWiring
- Author:
- gjoranv, ollivir
-
Field Summary
FieldsFields inherited from interface org.osgi.framework.Bundle
ACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLEDFields inherited from interface org.osgi.framework.wiring.BundleWiring
FINDENTRIES_RECURSE, LISTRESOURCES_LOCAL, LISTRESOURCES_RECURSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TintcompareTo(org.osgi.framework.Bundle o) findEntries(String path, String filePattern, boolean recurse) findEntries(String p1, String p2, int p3) org.osgi.framework.Bundleorg.osgi.framework.BundleContextlongList<org.osgi.framework.wiring.BundleCapability>getDataFile(String filename) getEntryPaths(String path) getHeaders(String locale) longList<org.osgi.resource.Wire>List<org.osgi.framework.wiring.BundleWire>org.osgi.framework.ServiceReference<?>[]List<org.osgi.resource.Wire>List<org.osgi.framework.wiring.BundleWire>List<org.osgi.framework.wiring.BundleRequirement>org.osgi.framework.wiring.BundleRevisiongetResource(String name) List<org.osgi.resource.Capability>List<org.osgi.resource.Requirement>getResources(String name) org.osgi.framework.wiring.BundleRevisionorg.osgi.framework.ServiceReference<?>[]getSignerCertificates(int signersType) intgetState()org.osgi.framework.VersionbooleanhasPermission(Object permission) booleanbooleanisInUse()listResources(String p1, String p2, int p3) Class<?>voidstart()voidstart(int options) voidstop()voidstop(int options) voidvoidupdate()voidupdate(InputStream input)
-
Field Details
-
SymbolicName
- See Also:
-
BundleVersion
public static final org.osgi.framework.Version BundleVersion
-
-
Constructor Details
-
MockBundle
public MockBundle()
-
-
Method Details
-
getState
public int getState()- Specified by:
getStatein interfaceorg.osgi.framework.Bundle
-
start
public void start(int options) - Specified by:
startin interfaceorg.osgi.framework.Bundle
-
start
public void start()- Specified by:
startin interfaceorg.osgi.framework.Bundle
-
stop
public void stop(int options) - Specified by:
stopin interfaceorg.osgi.framework.Bundle
-
stop
public void stop()- Specified by:
stopin interfaceorg.osgi.framework.Bundle
-
update
- Specified by:
updatein interfaceorg.osgi.framework.Bundle
-
update
public void update()- Specified by:
updatein interfaceorg.osgi.framework.Bundle
-
uninstall
public void uninstall()- Specified by:
uninstallin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getSymbolicName
- Specified by:
getSymbolicNamein interfaceorg.osgi.framework.Bundle
-
getVersion
public org.osgi.framework.Version getVersion()- Specified by:
getVersionin interfaceorg.osgi.framework.Bundle
-
getLocation
- Specified by:
getLocationin interfaceorg.osgi.framework.Bundle
-
getBundleId
public long getBundleId()- Specified by:
getBundleIdin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getRegisteredServices
public org.osgi.framework.ServiceReference<?>[] getRegisteredServices()- Specified by:
getRegisteredServicesin interfaceorg.osgi.framework.Bundle
-
getServicesInUse
public org.osgi.framework.ServiceReference<?>[] getServicesInUse()- Specified by:
getServicesInUsein interfaceorg.osgi.framework.Bundle
-
hasPermission
- Specified by:
hasPermissionin interfaceorg.osgi.framework.Bundle
-
getResource
- Specified by:
getResourcein interfaceorg.osgi.framework.Bundle
-
loadClass
- Specified by:
loadClassin interfaceorg.osgi.framework.Bundle
-
getResources
- Specified by:
getResourcesin interfaceorg.osgi.framework.Bundle
-
getEntryPaths
- Specified by:
getEntryPathsin interfaceorg.osgi.framework.Bundle
-
getEntry
- Specified by:
getEntryin interfaceorg.osgi.framework.Bundle
-
findEntries
- Specified by:
findEntriesin interfaceorg.osgi.framework.Bundle
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceorg.osgi.framework.Bundle
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()- Specified by:
getBundleContextin interfaceorg.osgi.framework.Bundle
-
getSignerCertificates
- Specified by:
getSignerCertificatesin interfaceorg.osgi.framework.Bundle
-
adapt
- Specified by:
adaptin interfaceorg.osgi.framework.Bundle
-
getDataFile
- Specified by:
getDataFilein interfaceorg.osgi.framework.Bundle
-
compareTo
public int compareTo(org.osgi.framework.Bundle o) - Specified by:
compareToin interfaceComparable<org.osgi.framework.Bundle>
-
findEntries
- Specified by:
findEntriesin interfaceorg.osgi.framework.wiring.BundleWiring
-
getRequiredResourceWires
- Specified by:
getRequiredResourceWiresin interfaceorg.osgi.framework.wiring.BundleWiring- Specified by:
getRequiredResourceWiresin interfaceorg.osgi.resource.Wiring
-
getResourceCapabilities
- Specified by:
getResourceCapabilitiesin interfaceorg.osgi.framework.wiring.BundleWiring- Specified by:
getResourceCapabilitiesin interfaceorg.osgi.resource.Wiring
-
isCurrent
public boolean isCurrent()- Specified by:
isCurrentin interfaceorg.osgi.framework.wiring.BundleWiring
-
getRequiredWires
- Specified by:
getRequiredWiresin interfaceorg.osgi.framework.wiring.BundleWiring
-
getCapabilities
- Specified by:
getCapabilitiesin interfaceorg.osgi.framework.wiring.BundleWiring
-
getProvidedResourceWires
- Specified by:
getProvidedResourceWiresin interfaceorg.osgi.framework.wiring.BundleWiring- Specified by:
getProvidedResourceWiresin interfaceorg.osgi.resource.Wiring
-
getProvidedWires
- Specified by:
getProvidedWiresin interfaceorg.osgi.framework.wiring.BundleWiring
-
getRevision
public org.osgi.framework.wiring.BundleRevision getRevision()- Specified by:
getRevisionin interfaceorg.osgi.framework.wiring.BundleWiring
-
getResourceRequirements
- Specified by:
getResourceRequirementsin interfaceorg.osgi.framework.wiring.BundleWiring- Specified by:
getResourceRequirementsin interfaceorg.osgi.resource.Wiring
-
isInUse
public boolean isInUse()- Specified by:
isInUsein interfaceorg.osgi.framework.wiring.BundleWiring
-
listResources
- Specified by:
listResourcesin interfaceorg.osgi.framework.wiring.BundleWiring
-
getClassLoader
- Specified by:
getClassLoaderin interfaceorg.osgi.framework.wiring.BundleWiring
-
getRequirements
- Specified by:
getRequirementsin interfaceorg.osgi.framework.wiring.BundleWiring
-
getResource
public org.osgi.framework.wiring.BundleRevision getResource()- Specified by:
getResourcein interfaceorg.osgi.framework.wiring.BundleWiring- Specified by:
getResourcein interfaceorg.osgi.resource.Wiring
-
getBundle
public org.osgi.framework.Bundle getBundle()- Specified by:
getBundlein interfaceorg.osgi.framework.BundleReference
-