org.jboss.osgi.resolver
Interface XBundleRevision

All Superinterfaces:
org.osgi.framework.BundleReference, org.osgi.framework.wiring.BundleRevision, org.osgi.resource.Resource, XAttachmentSupport, XElement, XResource
All Known Implementing Classes:
AbstractBundleRevision

public interface XBundleRevision
extends XResource, org.osgi.framework.wiring.BundleRevision

An extension to BundleRevision

Since:
15-Mar-2012
Author:
thomas.diesler@jboss.com

Field Summary
 
Fields inherited from interface org.osgi.framework.wiring.BundleRevision
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT
 
Method Summary
 Enumeration<URL> findEntries(String path, String filePattern, boolean recursive)
           
 XBundle getBundle()
          Get the associated XBundle
 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)
           
 
Methods inherited from interface org.jboss.osgi.resolver.XResource
getIdentityCapability, isFragment, isMutable, makeImmutable, validate
 
Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport
addAttachment, getAttachment, removeAttachment
 
Methods inherited from interface org.osgi.framework.wiring.BundleRevision
getCapabilities, getDeclaredCapabilities, getDeclaredRequirements, getRequirements, getSymbolicName, getTypes, getVersion, getWiring
 
Methods inherited from interface org.osgi.resource.Resource
equals, hashCode
 

Method Detail

getBundle

XBundle getBundle()
Get the associated XBundle

Specified by:
getBundle in interface org.osgi.framework.BundleReference

getModuleIdentifier

org.jboss.modules.ModuleIdentifier getModuleIdentifier()
Get the associated ModuleIdentifier or null if the revision is not resolved


getModuleClassLoader

org.jboss.modules.ModuleClassLoader getModuleClassLoader()
Get the associated ModuleIdentifier or null if the revision is not resolved


getResource

URL getResource(String name)
See Also:
Bundle#getResource(String)}

getResources

Enumeration<URL> getResources(String name)
                              throws IOException
Throws:
IOException
See Also:
Bundle#getResources(String)}

findEntries

Enumeration<URL> findEntries(String path,
                             String filePattern,
                             boolean recursive)
See Also:
Bundle#findEntries(String, String, boolean)}

getEntry

URL getEntry(String path)
See Also:
Bundle#getEntry(String)}

getEntryPaths

Enumeration<String> getEntryPaths(String path)
See Also:
Bundle#getEntryPaths(String)}


Copyright © 2012 JBoss by Red Hat. All Rights Reserved.