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.Bundle
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface org.osgi.framework.Bundle
public long getBundleId()
getBundleId
in interface org.osgi.framework.Bundle
public URL getEntry(String arg0)
getEntry
in interface org.osgi.framework.Bundle
public Enumeration getEntryPaths(String arg0)
getEntryPaths
in interface org.osgi.framework.Bundle
public Dictionary getHeaders()
getHeaders
in interface org.osgi.framework.Bundle
public Dictionary getHeaders(String arg0)
getHeaders
in interface org.osgi.framework.Bundle
public long getLastModified()
getLastModified
in interface org.osgi.framework.Bundle
public String getLocation()
getLocation
in interface org.osgi.framework.Bundle
public org.osgi.framework.ServiceReference[] getRegisteredServices()
getRegisteredServices
in interface org.osgi.framework.Bundle
public URL getResource(String arg0)
getResource
in interface org.osgi.framework.Bundle
public Enumeration getResources(String arg0) throws IOException
getResources
in interface org.osgi.framework.Bundle
IOException
public org.osgi.framework.ServiceReference[] getServicesInUse()
getServicesInUse
in interface org.osgi.framework.Bundle
public Map getSignerCertificates(int arg0)
getSignerCertificates
in interface org.osgi.framework.Bundle
public int getState()
getState
in interface org.osgi.framework.Bundle
public String getSymbolicName()
getSymbolicName
in interface org.osgi.framework.Bundle
public org.osgi.framework.Version getVersion()
getVersion
in interface org.osgi.framework.Bundle
public boolean hasPermission(Object arg0)
hasPermission
in interface org.osgi.framework.Bundle
public Class loadClass(String arg0) throws ClassNotFoundException
loadClass
in interface org.osgi.framework.Bundle
ClassNotFoundException
public void start() throws org.osgi.framework.BundleException
start
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void start(int arg0) throws org.osgi.framework.BundleException
start
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void stop() throws org.osgi.framework.BundleException
stop
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void stop(int arg0) throws org.osgi.framework.BundleException
stop
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void uninstall() throws org.osgi.framework.BundleException
uninstall
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void update() throws org.osgi.framework.BundleException
update
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void update(InputStream arg0) throws org.osgi.framework.BundleException
update
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public 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.Bundle
public int compareTo(Object t)
public org.osgi.framework.Bundle getBundle()
getBundle
in interface org.osgi.framework.BundleReference
public List<org.osgi.framework.wiring.BundleRevision> getRevisions()
getRevisions
in interface org.osgi.framework.wiring.BundleRevisions
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.