org.jboss.osgi.resolver.spi
Class AbstractBundleCapability

java.lang.Object
  extended by org.jboss.osgi.resolver.spi.AbstractElement
      extended by org.jboss.osgi.resolver.spi.AbstractCapability
          extended by org.jboss.osgi.resolver.spi.AbstractBundleCapability
All Implemented Interfaces:
XAttachmentSupport, XAttributeSupport, XBundleCapability, XCapability, XDirectiveSupport, XElement, XHostCapability, XIdentityCapability, XPackageCapability, XResourceCapability, org.osgi.framework.wiring.BundleCapability, org.osgi.resource.Capability

public class AbstractBundleCapability
extends AbstractCapability
implements XBundleCapability

The abstract implementation of an XBundleCapability.

Since:
30-May-2012
Author:
thomas.diesler@jboss.com

Constructor Summary
AbstractBundleCapability(XResource resource, String namespace, Map<String,Object> atts, Map<String,String> dirs)
           
 
Method Summary
 XBundleRevision getResource()
           
 XBundleRevision getRevision()
           
 
Methods inherited from class org.jboss.osgi.resolver.spi.AbstractCapability
adapt, ensureImmutable, ensureMutable, getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getPackageName, getSymbolicName, getType, getVersion, isMutable, isSingleton, toString, validate
 
Methods inherited from class org.jboss.osgi.resolver.spi.AbstractElement
addAttachment, getAttachment, removeAttachment
 
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.XCapability
adapt, validate
 
Methods inherited from interface org.jboss.osgi.resolver.XAttachmentSupport
addAttachment, getAttachment, removeAttachment
 
Methods inherited from interface org.jboss.osgi.resolver.XAttributeSupport
getAttribute, getAttributes
 
Methods inherited from interface org.jboss.osgi.resolver.XDirectiveSupport
getDirective, getDirectives
 
Methods inherited from interface org.osgi.framework.wiring.BundleCapability
getAttributes, getDirectives, getNamespace
 
Methods inherited from interface org.osgi.resource.Capability
equals, hashCode
 

Constructor Detail

AbstractBundleCapability

public AbstractBundleCapability(XResource resource,
                                String namespace,
                                Map<String,Object> atts,
                                Map<String,String> dirs)
Method Detail

getResource

public XBundleRevision getResource()
Specified by:
getResource in interface org.osgi.framework.wiring.BundleCapability
Specified by:
getResource in interface org.osgi.resource.Capability
Overrides:
getResource in class AbstractCapability

getRevision

public XBundleRevision getRevision()
Specified by:
getRevision in interface org.osgi.framework.wiring.BundleCapability


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