org.jboss.osgi.resolver.spi
Class AbstractDynamicPackageRequirement

java.lang.Object
  extended by org.jboss.osgi.resolver.spi.AbstractPackageRequirement
      extended by org.jboss.osgi.resolver.spi.AbstractDynamicPackageRequirement
All Implemented Interfaces:
XAttachmentSupport, XAttributeSupport, XDirectiveSupport, XElement, XPackageRequirement, XRequirement

public class AbstractDynamicPackageRequirement
extends AbstractPackageRequirement

The abstract implementation of a XPackageRequirement.

Since:
02-Jul-2010
Author:
thomas.diesler@jboss.com

Constructor Summary
AbstractDynamicPackageRequirement(AbstractModule module, String name, Map<String,String> dirs, Map<String,Object> atts)
           
 
Method Summary
<T> T
addAttachment(Class<T> clazz, T value)
           
<T> T
getAttachment(Class<T> clazz)
           
 Object getAttribute(String key)
           
 Map<String,Object> getAttributes()
           
 String getDirective(String key)
           
 Map<String,String> getDirectives()
           
 XModule getModule()
           
 String getName()
           
 XCapability getWiredCapability()
           
 boolean isDynamic()
           
 boolean isOptional()
           
 boolean matchPackageName(XPackageCapability cap)
           
<T> T
removeAttachment(Class<T> clazz)
           
 String toString()
           
 
Methods inherited from class org.jboss.osgi.resolver.spi.AbstractPackageRequirement
getBundleSymbolicName, getBundleVersion, getResolution, getVersionRange, match
 
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.XPackageRequirement
isDynamic
 
Methods inherited from interface org.jboss.osgi.resolver.XRequirement
getModule, getWiredCapability, isOptional
 
Methods inherited from interface org.jboss.osgi.resolver.XElement
getName
 
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.jboss.osgi.resolver.XAttachmentSupport
addAttachment, getAttachment, removeAttachment
 

Constructor Detail

AbstractDynamicPackageRequirement

public AbstractDynamicPackageRequirement(AbstractModule module,
                                         String name,
                                         Map<String,String> dirs,
                                         Map<String,Object> atts)
Method Detail

matchPackageName

public boolean matchPackageName(XPackageCapability cap)
Overrides:
matchPackageName in class AbstractPackageRequirement

toString

public String toString()
Overrides:
toString in class AbstractPackageRequirement

getModule

public XModule getModule()
Specified by:
getModule in interface XRequirement

isOptional

public boolean isOptional()
Specified by:
isOptional in interface XRequirement

isDynamic

public boolean isDynamic()
Specified by:
isDynamic in interface XRequirement

getWiredCapability

public XCapability getWiredCapability()
Specified by:
getWiredCapability in interface XRequirement

getAttribute

public Object getAttribute(String key)
Specified by:
getAttribute in interface XAttributeSupport

getAttributes

public Map<String,Object> getAttributes()
Specified by:
getAttributes in interface XAttributeSupport

getDirective

public String getDirective(String key)
Specified by:
getDirective in interface XDirectiveSupport

getDirectives

public Map<String,String> getDirectives()
Specified by:
getDirectives in interface XDirectiveSupport

addAttachment

public <T> T addAttachment(Class<T> clazz,
                           T value)
Specified by:
addAttachment in interface XAttachmentSupport

getAttachment

public <T> T getAttachment(Class<T> clazz)
Specified by:
getAttachment in interface XAttachmentSupport

removeAttachment

public <T> T removeAttachment(Class<T> clazz)
Specified by:
removeAttachment in interface XAttachmentSupport

getName

public String getName()
Specified by:
getName in interface XElement


Copyright © 2012. All Rights Reserved.