public class FakeBundle extends Object implements org.osgi.framework.Bundle
| Constructor and Description |
|---|
FakeBundle(Map certs) |
| Modifier and Type | Method and Description |
|---|---|
Object |
adapt(Class arg0) |
int |
compareTo(org.osgi.framework.Bundle o) |
int |
compareTo(Object t) |
boolean |
equals(Object o) |
Enumeration |
findEntries(String arg0,
String arg1,
boolean arg2) |
org.osgi.framework.Bundle |
getBundle() |
org.osgi.framework.BundleContext |
getBundleContext() |
long |
getBundleId() |
File |
getDataFile(String arg0) |
URL |
getEntry(String arg0) |
Enumeration |
getEntryPaths(String arg0) |
Dictionary |
getHeaders() |
Dictionary |
getHeaders(String arg0) |
long |
getLastModified() |
String |
getLocation() |
org.osgi.framework.ServiceReference[] |
getRegisteredServices() |
URL |
getResource(String arg0) |
Enumeration |
getResources(String arg0) |
List<org.osgi.framework.wiring.BundleRevision> |
getRevisions() |
org.osgi.framework.ServiceReference[] |
getServicesInUse() |
Map |
getSignerCertificates(int arg0) |
int |
getState() |
String |
getSymbolicName() |
org.osgi.framework.Version |
getVersion() |
int |
hashCode() |
boolean |
hasPermission(Object arg0) |
Class |
loadClass(String arg0) |
void |
start() |
void |
start(int arg0) |
void |
stop() |
void |
stop(int arg0) |
String |
toString() |
void |
uninstall() |
void |
update() |
void |
update(InputStream arg0) |
public FakeBundle(Map certs)
public Enumeration findEntries(String arg0, String arg1, boolean arg2)
findEntries in interface org.osgi.framework.Bundlepublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface org.osgi.framework.Bundlepublic long getBundleId()
getBundleId in interface org.osgi.framework.Bundlepublic URL getEntry(String arg0)
getEntry in interface org.osgi.framework.Bundlepublic Enumeration getEntryPaths(String arg0)
getEntryPaths in interface org.osgi.framework.Bundlepublic Dictionary getHeaders()
getHeaders in interface org.osgi.framework.Bundlepublic Dictionary getHeaders(String arg0)
getHeaders in interface org.osgi.framework.Bundlepublic long getLastModified()
getLastModified in interface org.osgi.framework.Bundlepublic String getLocation()
getLocation in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference[] getRegisteredServices()
getRegisteredServices in interface org.osgi.framework.Bundlepublic URL getResource(String arg0)
getResource in interface org.osgi.framework.Bundlepublic Enumeration getResources(String arg0) throws IOException
getResources in interface org.osgi.framework.BundleIOExceptionpublic org.osgi.framework.ServiceReference[] getServicesInUse()
getServicesInUse in interface org.osgi.framework.Bundlepublic Map getSignerCertificates(int arg0)
getSignerCertificates in interface org.osgi.framework.Bundlepublic int getState()
getState in interface org.osgi.framework.Bundlepublic String getSymbolicName()
getSymbolicName in interface org.osgi.framework.Bundlepublic org.osgi.framework.Version getVersion()
getVersion in interface org.osgi.framework.Bundlepublic boolean hasPermission(Object arg0)
hasPermission in interface org.osgi.framework.Bundlepublic Class loadClass(String arg0) throws ClassNotFoundException
loadClass in interface org.osgi.framework.BundleClassNotFoundExceptionpublic void start()
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void start(int arg0)
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop()
throws org.osgi.framework.BundleException
stop in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop(int arg0)
throws org.osgi.framework.BundleException
stop in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void uninstall()
throws org.osgi.framework.BundleException
uninstall in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void update()
throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void update(InputStream arg0) throws org.osgi.framework.BundleException
update in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic int compareTo(org.osgi.framework.Bundle o)
compareTo in interface Comparable<org.osgi.framework.Bundle>public File getDataFile(String arg0)
getDataFile in interface org.osgi.framework.Bundlepublic int compareTo(Object t)
public org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.BundleReferencepublic List<org.osgi.framework.wiring.BundleRevision> getRevisions()
getRevisions in interface org.osgi.framework.wiring.BundleRevisionsCopyright © 2006–2018 The Apache Software Foundation. All rights reserved.