|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractPackageRequirement
public class AbstractPackageRequirement
The abstract implementation of a XPackageRequirement.
| Constructor Summary | |
|---|---|
AbstractPackageRequirement(AbstractModule module,
String name,
Map<String,String> dirs,
Map<String,Object> atts)
|
|
| Method Summary | ||
|---|---|---|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
Object |
getAttribute(String key)
Get the value of the given attribute |
|
Map<String,Object> |
getAttributes()
Get the attributes |
|
String |
getBundleSymbolicName()
The bundle symbolic name of the exporting bundle |
|
Version |
getBundleVersion()
The bundle version of the exporting bundle |
|
String |
getDirective(String key)
Get the value of the given directive |
|
Map<String,String> |
getDirectives()
Get the directives |
|
XModule |
getModule()
Get associated module. |
|
String |
getName()
Get the name for this capability. |
|
String |
getResolution()
The required resolution |
|
XVersionRange |
getVersionRange()
Get the required version range |
|
XCapability |
getWiredCapability()
Get the wired capbillity for this requirement. |
|
boolean |
isDynamic()
True if this is a dynamic requirement. |
|
boolean |
isOptional()
True if this requirement is optional |
|
boolean |
match(XPackageCapability cap)
True if the given capability matches this requirement |
|
boolean |
matchPackageName(XPackageCapability cap)
|
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
String |
toString()
|
|
| 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 |
|---|
public AbstractPackageRequirement(AbstractModule module,
String name,
Map<String,String> dirs,
Map<String,Object> atts)
| Method Detail |
|---|
public String getResolution()
XPackageRequirement
getResolution in interface XPackageRequirementpublic XVersionRange getVersionRange()
XPackageRequirement
getVersionRange in interface XPackageRequirementpublic String getBundleSymbolicName()
XPackageRequirement
getBundleSymbolicName in interface XPackageRequirementpublic Version getBundleVersion()
XPackageRequirement
getBundleVersion in interface XPackageRequirementpublic boolean match(XPackageCapability cap)
XPackageRequirement
match in interface XPackageRequirementpublic boolean matchPackageName(XPackageCapability cap)
public String toString()
toString in class Objectpublic XModule getModule()
XRequirement
getModule in interface XRequirementpublic boolean isOptional()
XRequirement
isOptional in interface XRequirementpublic boolean isDynamic()
XRequirement
isDynamic in interface XRequirementpublic XCapability getWiredCapability()
XRequirement
getWiredCapability in interface XRequirementpublic Object getAttribute(String key)
XAttributeSupport
getAttribute in interface XAttributeSupportpublic Map<String,Object> getAttributes()
XAttributeSupport
getAttributes in interface XAttributeSupportpublic String getDirective(String key)
XDirectiveSupport
getDirective in interface XDirectiveSupportpublic Map<String,String> getDirectives()
XDirectiveSupport
getDirectives in interface XDirectiveSupport
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
public String getName()
XElement
getName in interface XElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||