public class AbstractBundleAdaptor extends AbstractElement implements XBundle, LockManager.LockableItem, org.osgi.framework.startlevel.BundleStartLevel
Module to a Bundle| Constructor and Description |
|---|
AbstractBundleAdaptor(org.osgi.framework.BundleContext context,
org.jboss.modules.Module module,
org.jboss.osgi.framework.internal.AbstractCommonBundleRevision brev) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
adapt(Class<T> type)
Required by spec:
BundleContext The Bundle Context for this bundle. |
int |
compareTo(org.osgi.framework.Bundle o) |
boolean |
equals(Object obj) |
Enumeration<URL> |
findEntries(String path,
String filePattern,
boolean recurse) |
org.osgi.framework.Bundle |
getBundle() |
org.osgi.framework.BundleContext |
getBundleContext() |
long |
getBundleId() |
org.jboss.osgi.framework.internal.AbstractCommonBundleRevision |
getBundleRevision()
Get the current
XBundleRevision |
String |
getCanonicalName()
Get the bundle canonical name
[symbolicName:version]
|
File |
getDataFile(String filename) |
URL |
getEntry(String path) |
Enumeration<String> |
getEntryPaths(String path) |
Dictionary<String,String> |
getHeaders() |
Dictionary<String,String> |
getHeaders(String locale) |
long |
getLastModified() |
String |
getLocation() |
ReentrantLock |
getReentrantLock() |
org.osgi.framework.ServiceReference<?>[] |
getRegisteredServices() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
org.osgi.framework.ServiceReference<?>[] |
getServicesInUse() |
Map<X509Certificate,List<X509Certificate>> |
getSignerCertificates(int signersType) |
int |
getStartLevel() |
int |
getState() |
String |
getSymbolicName() |
org.osgi.framework.Version |
getVersion() |
int |
hashCode() |
boolean |
hasPermission(Object permission) |
boolean |
isActivationPolicyUsed() |
boolean |
isFragment()
True if the bundle is a fragment.
|
boolean |
isPersistentlyStarted() |
boolean |
isResolved()
True if the bundle is resolved.
|
Class<?> |
loadClass(String name) |
void |
setStartLevel(int level) |
void |
start() |
void |
start(int options) |
void |
stop() |
void |
stop(int options) |
String |
toString() |
void |
uninstall() |
void |
update() |
void |
update(InputStream input) |
getAttachment, putAttachment, removeAttachmentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttachment, putAttachment, removeAttachmentpublic AbstractBundleAdaptor(org.osgi.framework.BundleContext context,
org.jboss.modules.Module module,
org.jboss.osgi.framework.internal.AbstractCommonBundleRevision brev)
public org.osgi.framework.Bundle getBundle()
getBundle in interface org.osgi.framework.BundleReferencepublic long getBundleId()
getBundleId in interface org.osgi.framework.Bundlepublic String getLocation()
getLocation in interface org.osgi.framework.Bundlepublic String getSymbolicName()
getSymbolicName in interface org.osgi.framework.Bundlepublic String getCanonicalName()
XBundlegetCanonicalName in interface XBundlepublic int getState()
getState in interface org.osgi.framework.Bundlepublic org.osgi.framework.Version getVersion()
getVersion in interface org.osgi.framework.Bundlepublic Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in interface org.osgi.framework.BundleClassNotFoundExceptionpublic <T> T adapt(Class<T> type)
BundleContext The Bundle Context for this bundle.
BundleRevision The current Bundle Revision for this bundle.
BundleRevisions All existing Bundle Revision objects for this bundle.
BundleStartLevel The Bundle Start Level for this bundle.
BundleWiring The Bundle Wiring for the current Bundle Revision.
Proprietary extensions:
OSGiMetaData The Bundle metadata.
Module The Bundle's module.
BundleManager The Bundle manager.adapt in interface org.osgi.framework.Bundlepublic 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 Dictionary<String,String> getHeaders()
getHeaders in interface org.osgi.framework.Bundlepublic Dictionary<String,String> getHeaders(String locale)
getHeaders in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference<?>[] getRegisteredServices()
getRegisteredServices in interface org.osgi.framework.Bundlepublic org.osgi.framework.ServiceReference<?>[] getServicesInUse()
getServicesInUse in interface org.osgi.framework.Bundlepublic boolean hasPermission(Object permission)
hasPermission in interface org.osgi.framework.Bundlepublic URL getResource(String name)
getResource in interface org.osgi.framework.Bundlepublic Enumeration<URL> getResources(String name) throws IOException
getResources in interface org.osgi.framework.BundleIOExceptionpublic Enumeration<String> getEntryPaths(String path)
getEntryPaths in interface org.osgi.framework.Bundlepublic URL getEntry(String path)
getEntry in interface org.osgi.framework.Bundlepublic Enumeration<URL> findEntries(String path, String filePattern, boolean recurse)
findEntries in interface org.osgi.framework.Bundlepublic long getLastModified()
getLastModified in interface org.osgi.framework.Bundlepublic org.osgi.framework.BundleContext getBundleContext()
getBundleContext in interface org.osgi.framework.Bundlepublic Map<X509Certificate,List<X509Certificate>> getSignerCertificates(int signersType)
getSignerCertificates in interface org.osgi.framework.Bundlepublic boolean isResolved()
XBundleisResolved in interface XBundlepublic boolean isFragment()
XBundleisFragment in interface XBundlepublic org.jboss.osgi.framework.internal.AbstractCommonBundleRevision getBundleRevision()
XBundleXBundleRevisiongetBundleRevision in interface XBundlepublic int getStartLevel()
getStartLevel in interface org.osgi.framework.startlevel.BundleStartLevelpublic void setStartLevel(int level)
setStartLevel in interface org.osgi.framework.startlevel.BundleStartLevelpublic boolean isPersistentlyStarted()
isPersistentlyStarted in interface org.osgi.framework.startlevel.BundleStartLevelpublic boolean isActivationPolicyUsed()
isActivationPolicyUsed in interface org.osgi.framework.startlevel.BundleStartLevelpublic ReentrantLock getReentrantLock()
getReentrantLock in interface LockManager.LockableItempublic File getDataFile(String filename)
getDataFile in interface org.osgi.framework.Bundlepublic int compareTo(org.osgi.framework.Bundle o)
compareTo in interface Comparable<org.osgi.framework.Bundle>Copyright © 2016 JBoss by Red Hat. All rights reserved.