public class AbstractBundleRevision extends AbstractResource implements XBundleRevision
XBundleRevision.XResource.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 |
|---|
AbstractBundleRevision() |
| Modifier and Type | Method and Description |
|---|---|
Enumeration<URL> |
findEntries(String path,
String filePattern,
boolean recursive) |
XBundle |
getBundle()
Get the associated
XBundle |
String |
getCanonicalName()
Get the bundle canonical name
[symbolicName:version]
|
List<org.osgi.framework.wiring.BundleCapability> |
getDeclaredCapabilities(String namespace) |
List<org.osgi.framework.wiring.BundleRequirement> |
getDeclaredRequirements(String namespace) |
URL |
getEntry(String path) |
Enumeration<String> |
getEntryPaths(String path) |
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 |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
String |
getSymbolicName() |
int |
getTypes() |
org.osgi.framework.Version |
getVersion() |
org.osgi.framework.wiring.BundleWiring |
getWiring() |
XBundleWiringSupport |
getWiringSupport()
Get the
XWiringSupport associated with this resource |
boolean |
isFragment()
True if this revision is a fragment
|
void |
setBundle(XBundle bundle) |
addCapability, 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, waitgetIdentityCapability, getState, getWiring, isAbstract, isMutable, setMutable, validategetAttachment, putAttachment, removeAttachmentgetAttribute, getAttributespublic String getSymbolicName()
getSymbolicName in interface org.osgi.framework.wiring.BundleRevisionpublic org.osgi.framework.Version getVersion()
getVersion in interface org.osgi.framework.wiring.BundleRevisionpublic String getCanonicalName()
XBundleRevisiongetCanonicalName in interface XBundleRevisionpublic List<org.osgi.framework.wiring.BundleCapability> getDeclaredCapabilities(String namespace)
getDeclaredCapabilities in interface org.osgi.framework.wiring.BundleRevisionpublic List<org.osgi.framework.wiring.BundleRequirement> getDeclaredRequirements(String namespace)
getDeclaredRequirements in interface org.osgi.framework.wiring.BundleRevisionpublic int getTypes()
getTypes in interface org.osgi.framework.wiring.BundleRevisionpublic boolean isFragment()
XBundleRevisionisFragment in interface XBundleRevisionpublic org.osgi.framework.wiring.BundleWiring getWiring()
getWiring in interface org.osgi.framework.wiring.BundleRevisionpublic XBundle getBundle()
XBundleRevisionXBundlegetBundle in interface XBundleRevisiongetBundle in interface org.osgi.framework.BundleReferencepublic void setBundle(XBundle bundle)
public XBundleWiringSupport getWiringSupport()
XResourceXWiringSupport associated with this resourcegetWiringSupport in interface XBundleRevisiongetWiringSupport in interface XResourcegetWiringSupport in class AbstractResourcepublic org.jboss.modules.ModuleIdentifier getModuleIdentifier()
XBundleRevisionModuleIdentifier
or null if the revision is not resolvedgetModuleIdentifier in interface XBundleRevisionpublic org.jboss.modules.ModuleClassLoader getModuleClassLoader()
XBundleRevisionModuleIdentifier
or null if the revision is not resolvedgetModuleClassLoader in interface XBundleRevisionpublic Enumeration<URL> findEntries(String path, String filePattern, boolean recursive)
findEntries in interface XBundleRevisionBundle#findEntries(String, String, boolean)}public URL getResource(String name)
getResource in interface XBundleRevisionBundle#getResource(String)}public Enumeration<URL> getResources(String name) throws IOException
getResources in interface XBundleRevisionIOExceptionBundle#getResources(String)}public URL getEntry(String path)
getEntry in interface XBundleRevisionBundle#getEntry(String)}public Enumeration<String> getEntryPaths(String path)
getEntryPaths in interface XBundleRevisionBundle#getEntryPaths(String)}Copyright © 2016 JBoss by Red Hat. All rights reserved.