|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.osgi.resolver.spi.AbstractModule
public class AbstractModule
The abstract implementation of an XModule
.
This is the resolver representation of a Bundle
.
Method Summary | ||
---|---|---|
|
addAttachment(Class<T> clazz,
T value)
Attach an arbirtary object with this element. |
|
protected void |
addWire(org.jboss.osgi.resolver.spi.AbstractWire wire)
|
|
boolean |
equals(Object obj)
|
|
|
getAttachment(Class<T> clazz)
Get the attached object for a given key |
|
XBundleCapability |
getBundleCapability()
Get this modules host capability |
|
List<String> |
getBundleClassPath()
Get the bundle class paths |
|
List<XRequireBundleRequirement> |
getBundleRequirements()
Get the bundle requirements |
|
List<XCapability> |
getCapabilities()
Get all module capabilities |
|
List<XPackageRequirement> |
getDynamicPackageRequirements()
Get the dynamic package requirements |
|
XFragmentHostRequirement |
getHostRequirement()
Get the fragment host requirement if this module is a fragment |
|
String |
getModuleActivator()
Get the optional module activator |
|
XModuleIdentity |
getModuleId()
Get the module id |
|
String |
getName()
Get the name for this capability. |
|
List<XPackageCapability> |
getPackageCapabilities()
Get the package capabilities |
|
List<XPackageRequirement> |
getPackageRequirements()
Get the non-dynamic package requirements |
|
List<XRequirement> |
getRequirements()
Get all module requirements |
|
XResolver |
getResolver()
Get the resolver that is controlling this module. |
|
Version |
getVersion()
Get the module version |
|
List<XWire> |
getWires()
Get the list of wires for this module |
|
int |
hashCode()
|
|
boolean |
isFragment()
True is this module represents a fragment |
|
boolean |
isResolved()
True if this module is resolved |
|
|
removeAttachment(Class<T> clazz)
Remove an attached object for a given key |
|
StringBuffer |
toLongString(StringBuffer buffer)
|
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.osgi.resolver.XElement |
---|
getName |
Method Detail |
---|
public XResolver getResolver()
XModule
getResolver
in interface XModule
public XModuleIdentity getModuleId()
XModule
getModuleId
in interface XModule
public Version getVersion()
XModule
getVersion
in interface XModule
public String getModuleActivator()
XModule
getModuleActivator
in interface XModule
public boolean isResolved()
XModule
isResolved
in interface XModule
public List<XCapability> getCapabilities()
XModule
getCapabilities
in interface XModule
public List<XRequirement> getRequirements()
XModule
getRequirements
in interface XModule
public List<XRequireBundleRequirement> getBundleRequirements()
XModule
getBundleRequirements
in interface XModule
public XBundleCapability getBundleCapability()
XModule
getBundleCapability
in interface XModule
public List<XPackageCapability> getPackageCapabilities()
XModule
getPackageCapabilities
in interface XModule
public List<XPackageRequirement> getPackageRequirements()
XModule
getPackageRequirements
in interface XModule
public List<XPackageRequirement> getDynamicPackageRequirements()
XModule
getDynamicPackageRequirements
in interface XModule
public XFragmentHostRequirement getHostRequirement()
XModule
getHostRequirement
in interface XModule
public boolean isFragment()
XModule
isFragment
in interface XModule
public List<String> getBundleClassPath()
XModule
getBundleClassPath
in interface XModule
public List<XWire> getWires()
XModule
getWires
in interface XModule
protected void addWire(org.jboss.osgi.resolver.spi.AbstractWire wire)
public <T> T addAttachment(Class<T> clazz, T value)
XAttachmentSupport
addAttachment
in interface XAttachmentSupport
clazz
- key for the attachment
public <T> T getAttachment(Class<T> clazz)
XAttachmentSupport
getAttachment
in interface XAttachmentSupport
clazz
- key for the attachment
public <T> T removeAttachment(Class<T> clazz)
XAttachmentSupport
removeAttachment
in interface XAttachmentSupport
clazz
- key for the attachment
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public StringBuffer toLongString(StringBuffer buffer)
public String toString()
toString
in class Object
public String getName()
XElement
getName
in interface XElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |