|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractRequirement
org.jboss.osgi.resolver.spi.AbstractPackageRequirement
public class AbstractPackageRequirement
The abstract implementation of a XPackageRequirement.
| Constructor Summary | |
|---|---|
AbstractPackageRequirement(Resource res,
Map<String,Object> attrs,
Map<String,String> dirs)
|
|
| 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 |
|
protected Set<String> |
getMandatoryAttributes()
|
|
String |
getPackageName()
The package name |
|
VersionRange |
getVersionRange()
The package version range. |
|
boolean |
isDynamic()
A flag indicating that this is a dynamic package requirement |
|
boolean |
matches(XCapability cap)
Matches this requirement against the given capability. |
|
boolean |
matchNamespaceValue(XCapability cap)
|
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
| Methods inherited from class org.jboss.osgi.resolver.spi.AbstractRequirement |
|---|
getAttribute, getAttributes, getDirective, getDirectives, getNamespace, getResource, isOptional, matchFilterValue, toString, validateAttributes |
| 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.XRequirement |
|---|
isOptional |
| 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.resource.Requirement |
|---|
equals, getAttributes, getDirectives, getNamespace, getResource, hashCode |
| Constructor Detail |
|---|
public AbstractPackageRequirement(Resource res,
Map<String,Object> attrs,
Map<String,String> dirs)
| Method Detail |
|---|
protected Set<String> getMandatoryAttributes()
getMandatoryAttributes in class AbstractRequirementpublic String getPackageName()
XPackageRequirement
getPackageName in interface XPackageRequirementpublic VersionRange getVersionRange()
XPackageRequirement
getVersionRange in interface XPackageRequirementpublic boolean isDynamic()
XPackageRequirement
isDynamic in interface XPackageRequirementpublic boolean matchNamespaceValue(XCapability cap)
matchNamespaceValue in class AbstractRequirementpublic boolean matches(XCapability cap)
XRequirement
matches in interface XRequirementmatches in class AbstractRequirement
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 | |||||||||