public class MockBundleBase extends Object implements org.osgi.framework.Bundle
Bundle
.
The actual mock class inherits this class, and only needs replace
those methods needed by the tests.Constructor and Description |
---|
MockBundleBase() |
public int compareTo(org.osgi.framework.Bundle arg0)
compareTo
in interface Comparable<org.osgi.framework.Bundle>
public int getState()
getState
in interface org.osgi.framework.Bundle
public void start(int options) throws org.osgi.framework.BundleException
start
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void start() throws org.osgi.framework.BundleException
start
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public void stop(int options) throws org.osgi.framework.BundleException
stop
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 update(InputStream input) throws org.osgi.framework.BundleException
update
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 uninstall() throws org.osgi.framework.BundleException
uninstall
in interface org.osgi.framework.Bundle
org.osgi.framework.BundleException
public Dictionary<String,String> getHeaders()
getHeaders
in interface org.osgi.framework.Bundle
public long getBundleId()
getBundleId
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 org.osgi.framework.ServiceReference<?>[] getServicesInUse()
getServicesInUse
in interface org.osgi.framework.Bundle
public boolean hasPermission(Object permission)
hasPermission
in interface org.osgi.framework.Bundle
public URL getResource(String name)
getResource
in interface org.osgi.framework.Bundle
public Dictionary<String,String> getHeaders(String locale)
getHeaders
in interface org.osgi.framework.Bundle
public String getSymbolicName()
getSymbolicName
in interface org.osgi.framework.Bundle
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in interface org.osgi.framework.Bundle
ClassNotFoundException
public Enumeration<URL> getResources(String name) throws IOException
getResources
in interface org.osgi.framework.Bundle
IOException
public Enumeration<String> getEntryPaths(String path)
getEntryPaths
in interface org.osgi.framework.Bundle
public URL getEntry(String path)
getEntry
in interface org.osgi.framework.Bundle
public long getLastModified()
getLastModified
in interface org.osgi.framework.Bundle
public Enumeration<URL> findEntries(String path, String filePattern, boolean recurse)
findEntries
in interface org.osgi.framework.Bundle
public org.osgi.framework.BundleContext getBundleContext()
getBundleContext
in interface org.osgi.framework.Bundle
public Map<X509Certificate,List<X509Certificate>> getSignerCertificates(int signersType)
getSignerCertificates
in interface org.osgi.framework.Bundle
public org.osgi.framework.Version getVersion()
getVersion
in interface org.osgi.framework.Bundle
public <A> A adapt(Class<A> type)
adapt
in interface org.osgi.framework.Bundle
Copyright © 2018. All rights reserved.