|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractResource
org.jboss.osgi.resolver.spi.AbstractBundleRevision
public class AbstractBundleRevision
The abstract implementation of an XBundleRevision.
| Field Summary |
|---|
| Fields inherited from interface org.osgi.framework.wiring.BundleRevision |
|---|
BUNDLE_NAMESPACE, HOST_NAMESPACE, PACKAGE_NAMESPACE, TYPE_FRAGMENT |
| Constructor Summary | |
|---|---|
AbstractBundleRevision()
|
|
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
Enumeration<URL> |
findEntries(String path,
String filePattern,
boolean recursive)
|
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
XBundle |
getBundle()
Get the associated XBundle |
|
List<BundleCapability> |
getDeclaredCapabilities(String namespace)
Returns the capabilities declared by this bundle revision. |
|
List<BundleRequirement> |
getDeclaredRequirements(String namespace)
Returns the requirements declared by this bundle revision. |
|
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()
Returns the symbolic name for this bundle revision. |
|
int |
getTypes()
Returns the special types of this bundle revision. |
|
org.osgi.framework.Version |
getVersion()
Returns the version for this bundle revision. |
|
BundleWiring |
getWiring()
Returns the bundle wiring which is using this bundle revision. |
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
| Methods inherited from class org.jboss.osgi.resolver.spi.AbstractResource |
|---|
addCapability, addRequirement, getCapabilities, getIdentityCapability, getRequirements, isFragment, isMutable, makeImmutable, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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, getRequirements |
| Methods inherited from interface org.osgi.resource.Resource |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public AbstractBundleRevision()
| Method Detail |
|---|
public String getSymbolicName()
BundleRevision
getSymbolicName in interface BundleRevisionBundle.getSymbolicName()public org.osgi.framework.Version getVersion()
BundleRevision
getVersion in interface BundleRevisionVersion.emptyVersion if this bundle revision has no
version information.Bundle.getVersion()public List<BundleCapability> getDeclaredCapabilities(String namespace)
BundleRevision
getDeclaredCapabilities in interface BundleRevisionnamespace - The namespace of the declared capabilities to return or
null to return the declared capabilities from all
namespaces.
BundleCapabilitys from the specified namespace. The
returned list will be empty if this bundle revision declares no
capabilities in the specified namespace. The list contains the
declared capabilities in the order they are specified in the
manifest.public List<BundleRequirement> getDeclaredRequirements(String namespace)
BundleRevision
getDeclaredRequirements in interface BundleRevisionnamespace - The namespace of the declared requirements to return or
null to return the declared requirements from all
namespaces.
BundleRequirements from the specified namespace. The
returned list will be empty if this bundle revision declares no
requirements in the specified namespace. The list contains the
declared requirements in the order they are specified in the
manifest.public int getTypes()
BundleRevisionIf this bundle revision is not one or more of the defined types then 0 is returned.
getTypes in interface BundleRevisionpublic BundleWiring getWiring()
BundleRevision
getWiring in interface BundleRevisionnull if no bundle wiring is using this bundle revision.BundleWiring.getRevision()public XBundle getBundle()
XBundleRevisionXBundle
getBundle in interface XBundleRevisiongetBundle in interface org.osgi.framework.BundleReferencepublic org.jboss.modules.ModuleIdentifier getModuleIdentifier()
XBundleRevisionModuleIdentifier
or null if the revision is not resolved
getModuleIdentifier in interface XBundleRevisionpublic org.jboss.modules.ModuleClassLoader getModuleClassLoader()
XBundleRevisionModuleIdentifier
or null if the revision is not resolved
getModuleClassLoader in interface XBundleRevision
public 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)}
public <T> T addAttachment(Class<T> clazz,
T value)
XAttachmentSupport
addAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment in interface XAttachmentSupportclazz - key for the attachment
public <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment in interface XAttachmentSupportclazz - key for the attachment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||