public class AbstractBundleRevision extends AbstractResource implements XBundleRevision
XBundleRevision
.XResource.State
CAPABILITY_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, validate
getAttachment, putAttachment, removeAttachment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentityCapability, getState, getWiring, isAbstract, isMutable, setMutable, validate
getAttachment, putAttachment, removeAttachment
getAttribute, getAttributes
public String getSymbolicName()
getSymbolicName
in interface org.osgi.framework.wiring.BundleRevision
public org.osgi.framework.Version getVersion()
getVersion
in interface org.osgi.framework.wiring.BundleRevision
public String getCanonicalName()
XBundleRevision
getCanonicalName
in interface XBundleRevision
public List<org.osgi.framework.wiring.BundleCapability> getDeclaredCapabilities(String namespace)
getDeclaredCapabilities
in interface org.osgi.framework.wiring.BundleRevision
public List<org.osgi.framework.wiring.BundleRequirement> getDeclaredRequirements(String namespace)
getDeclaredRequirements
in interface org.osgi.framework.wiring.BundleRevision
public int getTypes()
getTypes
in interface org.osgi.framework.wiring.BundleRevision
public boolean isFragment()
XBundleRevision
isFragment
in interface XBundleRevision
public org.osgi.framework.wiring.BundleWiring getWiring()
getWiring
in interface org.osgi.framework.wiring.BundleRevision
public XBundle getBundle()
XBundleRevision
XBundle
getBundle
in interface XBundleRevision
getBundle
in interface org.osgi.framework.BundleReference
public void setBundle(XBundle bundle)
public XBundleWiringSupport getWiringSupport()
XResource
XWiringSupport
associated with this resourcegetWiringSupport
in interface XBundleRevision
getWiringSupport
in interface XResource
getWiringSupport
in class AbstractResource
public org.jboss.modules.ModuleIdentifier getModuleIdentifier()
XBundleRevision
ModuleIdentifier
or null if the revision is not resolvedgetModuleIdentifier
in interface XBundleRevision
public org.jboss.modules.ModuleClassLoader getModuleClassLoader()
XBundleRevision
ModuleIdentifier
or null if the revision is not resolvedgetModuleClassLoader
in interface XBundleRevision
public Enumeration<URL> findEntries(String path, String filePattern, boolean recursive)
findEntries
in interface XBundleRevision
Bundle#findEntries(String, String, boolean)}
public URL getResource(String name)
getResource
in interface XBundleRevision
Bundle#getResource(String)}
public Enumeration<URL> getResources(String name) throws IOException
getResources
in interface XBundleRevision
IOException
Bundle#getResources(String)}
public URL getEntry(String path)
getEntry
in interface XBundleRevision
Bundle#getEntry(String)}
public Enumeration<String> getEntryPaths(String path)
getEntryPaths
in interface XBundleRevision
Bundle#getEntryPaths(String)}
Copyright © 2013 JBoss by Red Hat. All rights reserved.