Class FakeBundle
java.lang.Object
de.uni_hildesheim.sse.easy.loader.framework.FakeBundle
- All Implemented Interfaces:
Comparable<org.osgi.framework.Bundle>,org.osgi.framework.Bundle
Implements a fake bundle.
- Author:
- Holger Eichelberger
-
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, UNINSTALLED -
Constructor Summary
ConstructorsConstructorDescriptionFakeBundle(org.osgi.framework.BundleContext context) Creates a fake bundle with associated bundle context. -
Method Summary
Modifier and TypeMethodDescription<A> AintcompareTo(org.osgi.framework.Bundle other) findEntries(String arg0, String arg1, boolean arg2) org.osgi.framework.BundleContextlonggetDataFile(String arg0) getEntryPaths(String arg0) getHeaders(String arg0) longorg.osgi.framework.ServiceReference<?>[]getResource(String arg0) getResources(String arg0) org.osgi.framework.ServiceReference<?>[]getSignerCertificates(int arg0) intgetState()org.osgi.framework.VersionbooleanhasPermission(Object arg0) Class<?> voidstart()voidstart(int arg0) voidstop()voidstop(int arg0) voidvoidupdate()voidupdate(InputStream arg0)
-
Field Details
-
context
private org.osgi.framework.BundleContext context
-
-
Constructor Details
-
FakeBundle
FakeBundle(org.osgi.framework.BundleContext context) Creates a fake bundle with associated bundle context.- Parameters:
context- the bundle context
-
-
Method Details
-
compareTo
public int compareTo(org.osgi.framework.Bundle other) - Specified by:
compareToin interfaceComparable<org.osgi.framework.Bundle>
-
adapt
- Specified by:
adaptin interfaceorg.osgi.framework.Bundle
-
findEntries
- Specified by:
findEntriesin interfaceorg.osgi.framework.Bundle
-
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()- Specified by:
getBundleContextin interfaceorg.osgi.framework.Bundle
-
getBundleId
public long getBundleId()- Specified by:
getBundleIdin interfaceorg.osgi.framework.Bundle
-
getDataFile
- Specified by:
getDataFilein interfaceorg.osgi.framework.Bundle
-
getEntry
- Specified by:
getEntryin interfaceorg.osgi.framework.Bundle
-
getEntryPaths
- Specified by:
getEntryPathsin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getHeaders
- Specified by:
getHeadersin interfaceorg.osgi.framework.Bundle
-
getLastModified
public long getLastModified()- Specified by:
getLastModifiedin interfaceorg.osgi.framework.Bundle
-
getLocation
- Specified by:
getLocationin interfaceorg.osgi.framework.Bundle
-
getRegisteredServices
public org.osgi.framework.ServiceReference<?>[] getRegisteredServices()- Specified by:
getRegisteredServicesin interfaceorg.osgi.framework.Bundle
-
getResource
- Specified by:
getResourcein interfaceorg.osgi.framework.Bundle
-
getResources
- Specified by:
getResourcesin interfaceorg.osgi.framework.Bundle- Throws:
IOException
-
getServicesInUse
public org.osgi.framework.ServiceReference<?>[] getServicesInUse()- Specified by:
getServicesInUsein interfaceorg.osgi.framework.Bundle
-
getSignerCertificates
- Specified by:
getSignerCertificatesin interfaceorg.osgi.framework.Bundle
-
getState
public int getState()- Specified by:
getStatein 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
-
hasPermission
- Specified by:
hasPermissionin interfaceorg.osgi.framework.Bundle
-
loadClass
- Specified by:
loadClassin interfaceorg.osgi.framework.Bundle- Throws:
ClassNotFoundException
-
start
public void start() throws org.osgi.framework.BundleException- Specified by:
startin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
start
public void start(int arg0) throws org.osgi.framework.BundleException - Specified by:
startin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
stop
public void stop() throws org.osgi.framework.BundleException- Specified by:
stopin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
stop
public void stop(int arg0) throws org.osgi.framework.BundleException - Specified by:
stopin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
uninstall
public void uninstall() throws org.osgi.framework.BundleException- Specified by:
uninstallin interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
update
public void update() throws org.osgi.framework.BundleException- Specified by:
updatein interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-
update
- Specified by:
updatein interfaceorg.osgi.framework.Bundle- Throws:
org.osgi.framework.BundleException
-