public class AbstractBundleAdaptor extends AbstractElement implements XBundle, LockManager.LockableItem, org.osgi.framework.startlevel.BundleStartLevel
Module to a BundleACTIVE, INSTALLED, RESOLVED, SIGNERS_ALL, SIGNERS_TRUSTED, START_ACTIVATION_POLICY, START_TRANSIENT, STARTING, STOP_TRANSIENT, STOPPING, UNINSTALLED| Constructor and Description |
|---|
AbstractBundleAdaptor(BundleContext context,
org.jboss.modules.Module module,
XBundleRevision brev) |
getAttachment, putAttachment, removeAttachmentclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAttachment, putAttachment, removeAttachmentpublic AbstractBundleAdaptor(BundleContext context, org.jboss.modules.Module module, XBundleRevision brev)
public Bundle getBundle()
getBundle in interface BundleReferencepublic long getBundleId()
getBundleId in interface Bundlepublic String getLocation()
getLocation in interface Bundlepublic String getSymbolicName()
getSymbolicName in interface Bundlepublic String getCanonicalName()
XBundlegetCanonicalName in interface XBundlepublic Version getVersion()
getVersion in interface Bundlepublic Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in interface 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.
[TODO] BundleWiring The Bundle Wiring for the current Bundle Revision.
Proprietary extensions:
[TODO] OSGiMetaData The Bundle metadata.
Module The Bundle's module.
BundleManager The Bundle manager.public void start(int options)
throws BundleException
start in interface BundleBundleExceptionpublic void start()
throws BundleException
start in interface BundleBundleExceptionpublic void stop(int options)
throws BundleException
stop in interface BundleBundleExceptionpublic void stop()
throws BundleException
stop in interface BundleBundleExceptionpublic void update(InputStream input) throws BundleException
update in interface BundleBundleExceptionpublic void update()
throws BundleException
update in interface BundleBundleExceptionpublic void uninstall()
throws BundleException
uninstall in interface BundleBundleExceptionpublic Dictionary<String,String> getHeaders()
getHeaders in interface Bundlepublic Dictionary<String,String> getHeaders(String locale)
getHeaders in interface Bundlepublic ServiceReference<?>[] getRegisteredServices()
getRegisteredServices in interface Bundlepublic ServiceReference<?>[] getServicesInUse()
getServicesInUse in interface Bundlepublic boolean hasPermission(Object permission)
hasPermission in interface Bundlepublic URL getResource(String name)
getResource in interface Bundlepublic Enumeration<URL> getResources(String name) throws IOException
getResources in interface BundleIOExceptionpublic Enumeration<String> getEntryPaths(String path)
getEntryPaths in interface Bundlepublic Enumeration<URL> findEntries(String path, String filePattern, boolean recurse)
findEntries in interface Bundlepublic long getLastModified()
getLastModified in interface Bundlepublic BundleContext getBundleContext()
getBundleContext in interface Bundlepublic Map<X509Certificate,List<X509Certificate>> getSignerCertificates(int signersType)
getSignerCertificates in interface Bundlepublic boolean isResolved()
XBundleisResolved in interface XBundlepublic boolean isFragment()
XBundleisFragment in interface XBundlepublic XBundleRevision 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 Bundlepublic int compareTo(Bundle o)
compareTo in interface Comparable<Bundle>Copyright © 2013 JBoss by Red Hat. All Rights Reserved.