public class AbstractBundleRevisionAdaptor extends org.jboss.osgi.framework.internal.AbstractCommonBundleRevision implements XBundleRevision
Module to a BundleRevisionXResource.StateCAPABILITY_TYPE_ATTRIBUTE, MAVEN_IDENTITY_NAMESPACE, MODULE_IDENTITY_NAMESPACE, RESOURCE_IDENTIFIER_KEY, TYPE_ABSTRACT, TYPE_BUNDLE, TYPE_FRAGMENT, TYPE_MAVEN, TYPE_MODULE, TYPE_UNKNOWN| Constructor and Description |
|---|
AbstractBundleRevisionAdaptor(org.osgi.framework.BundleContext context,
org.jboss.modules.Module module) |
| Modifier and Type | Method and Description |
|---|---|
protected XBundle |
createBundle(org.osgi.framework.BundleContext context,
org.jboss.modules.Module module,
org.jboss.osgi.framework.internal.AbstractCommonBundleRevision bundleRev) |
protected XBundleWiring |
createWiring() |
Enumeration<URL> |
findEntries(String path,
String filePattern,
boolean recursive) |
XBundle |
getBundle()
Get the associated
XBundle |
URL |
getEntry(String path) |
Enumeration<String> |
getEntryPaths(String path) |
URL |
getLocalizationEntry(String entryPath)
The framework must search for localization entries using the following search rules based on the bundle type:
fragment bundle - If the bundle is a resolved fragment, then the search for localization data must delegate to the attached
host bundle with the highest version.
|
org.jboss.modules.Module |
getModule() |
org.jboss.modules.ModuleClassLoader |
getModuleClassLoader()
Get the associated
ModuleIdentifier
or null if the revision is not resolved |
org.jboss.modules.ModuleIdentifier |
getModuleIdentifier()
Get the associated
ModuleIdentifier
or null if the revision is not resolved |
OSGiMetaData |
getOSGiMetaData() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
getHeadersFromRaw, getLocalizationEntrygetCanonicalName, getDeclaredCapabilities, getDeclaredRequirements, getSymbolicName, getTypes, getVersion, getWiring, getWiringSupport, isFragment, setBundleaddCapability, addRequirement, ensureImmutable, ensureMutable, getAttribute, getAttributes, getCapabilities, getIdentityCapability, getRequirements, getState, getWiring, isAbstract, isMutable, setMutable, toString, validategetAttachment, putAttachment, removeAttachmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCanonicalName, getWiringSupport, isFragmentgetIdentityCapability, getState, getWiring, isAbstract, isMutable, setMutable, validategetAttachment, putAttachment, removeAttachmentgetAttribute, getAttributespublic AbstractBundleRevisionAdaptor(org.osgi.framework.BundleContext context,
org.jboss.modules.Module module)
protected XBundleWiring createWiring()
protected XBundle createBundle(org.osgi.framework.BundleContext context, org.jboss.modules.Module module, org.jboss.osgi.framework.internal.AbstractCommonBundleRevision bundleRev)
public org.jboss.modules.Module getModule()
public XBundle getBundle()
XBundleRevisionXBundlegetBundle in interface XBundleRevisiongetBundle in interface org.osgi.framework.BundleReferencegetBundle in class AbstractBundleRevisionpublic org.jboss.modules.ModuleIdentifier getModuleIdentifier()
XBundleRevisionModuleIdentifier
or null if the revision is not resolvedgetModuleIdentifier in interface XBundleRevisiongetModuleIdentifier in class AbstractBundleRevisionpublic org.jboss.modules.ModuleClassLoader getModuleClassLoader()
XBundleRevisionModuleIdentifier
or null if the revision is not resolvedgetModuleClassLoader in interface XBundleRevisiongetModuleClassLoader in class AbstractBundleRevisionpublic URL getResource(String name)
getResource in interface XBundleRevisiongetResource in class AbstractBundleRevisionBundle#getResource(String)}public Enumeration<URL> getResources(String name) throws IOException
getResources in interface XBundleRevisiongetResources in class AbstractBundleRevisionIOExceptionBundle#getResources(String)}public URL getEntry(String path)
getEntry in interface XBundleRevisiongetEntry in class AbstractBundleRevisionBundle#getEntry(String)}public Enumeration<String> getEntryPaths(String path)
getEntryPaths in interface XBundleRevisiongetEntryPaths in class AbstractBundleRevisionBundle#getEntryPaths(String)}public Enumeration<URL> findEntries(String path, String filePattern, boolean recursive)
findEntries in interface XBundleRevisionfindEntries in class AbstractBundleRevisionBundle#findEntries(String, String, boolean)}public URL getLocalizationEntry(String entryPath)
org.jboss.osgi.framework.internal.AbstractCommonBundleRevisiongetLocalizationEntry in class org.jboss.osgi.framework.internal.AbstractCommonBundleRevisionpublic OSGiMetaData getOSGiMetaData()
getOSGiMetaData in class org.jboss.osgi.framework.internal.AbstractCommonBundleRevisionCopyright © 2016 JBoss by Red Hat. All rights reserved.