public final class BundleAdaptor extends Object implements org.osgi.framework.Bundle
| Constructor and Description |
|---|
BundleAdaptor(org.jboss.gravia.runtime.Module module) |
public long getBundleId()
getBundleId 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 String getLocation()
getLocation in interface org.osgi.framework.Bundlepublic int getState()
getState in interface org.osgi.framework.Bundlepublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface org.osgi.framework.Bundlepublic <A> A adapt(Class<A> type)
adapt in interface org.osgi.framework.Bundlepublic Class<?> loadClass(String className) throws ClassNotFoundException
loadClass in interface org.osgi.framework.BundleClassNotFoundExceptionpublic URL getResource(String name)
getResource in interface org.osgi.framework.Bundlepublic Dictionary<String,String> getHeaders()
getHeaders in interface org.osgi.framework.Bundlepublic Dictionary<String,String> getHeaders(String locale)
getHeaders in interface org.osgi.framework.Bundlepublic Enumeration<URL> getResources(String name) throws IOException
getResources in interface org.osgi.framework.BundleIOExceptionpublic URL getEntry(String path)
getEntry in interface org.osgi.framework.Bundlepublic Enumeration<String> getEntryPaths(String path)
getEntryPaths in interface org.osgi.framework.Bundlepublic Enumeration<URL> findEntries(String path, String filePattern, boolean recurse)
findEntries in interface org.osgi.framework.Bundlepublic int compareTo(org.osgi.framework.Bundle bundle)
compareTo in interface Comparable<org.osgi.framework.Bundle>public void start(int options)
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void start()
throws org.osgi.framework.BundleException
start in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic void stop(int options)
throws org.osgi.framework.BundleException
stop 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 update(InputStream input) throws org.osgi.framework.BundleException
update 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 uninstall()
throws org.osgi.framework.BundleException
uninstall in interface org.osgi.framework.Bundleorg.osgi.framework.BundleExceptionpublic org.osgi.framework.ServiceReference<?>[] getRegisteredServices()
getRegisteredServices in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference<?>[] getServicesInUse()
getServicesInUse in interface org.osgi.framework.Bundlepublic long getLastModified()
getLastModified in interface org.osgi.framework.Bundlepublic Map<X509Certificate,List<X509Certificate>> getSignerCertificates(int signersType)
getSignerCertificates in interface org.osgi.framework.Bundlepublic File getDataFile(String filename)
getDataFile in interface org.osgi.framework.Bundlepublic boolean hasPermission(Object permission)
hasPermission in interface org.osgi.framework.BundleCopyright © 2015 JBoss by Red Hat. All rights reserved.