|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.deployers.spi.attachments.helpers.AbstractAttachments
org.jboss.deployers.spi.attachments.helpers.AbstractMutableAttachments
org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
org.jboss.ejb3.test.deployers.MockDeploymentUnit
public class MockDeploymentUnit
MockDeploymentUnit An implementation of DeploymentUnit used in EJB3 Testing, equipped with ability to: - Add attachments - Manage the parent/child relationship - Get the ClassLoader
Constructor Summary | |
---|---|
MockDeploymentUnit(String name)
|
|
MockDeploymentUnit(String name,
org.jboss.deployers.structure.spi.DeploymentUnit parent)
|
Method Summary | |
---|---|
Object |
addAttachment(String name,
Object attachment)
|
void |
addChild(org.jboss.deployers.structure.spi.DeploymentUnit child)
|
Object |
getAttachment(String name)
|
Map<String,Object> |
getAttachments()
|
List<org.jboss.deployers.structure.spi.DeploymentUnit> |
getChildren()
|
ClassLoader |
getClassLoader()
|
org.jboss.deployers.structure.spi.DeploymentUnit |
getParent()
|
String |
toString()
|
Methods inherited from class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit |
---|
addComponent, addControllerContextName, addIDependOn, clear, clearChangeCount, createClassLoader, createComponentDeploymentContext, createComponentDeploymentUnit, getAllMetaData, getChangeCount, getComponent, getComponentContext, getComponents, getControllerContextName, getControllerContextNames, getDependencyInfo, getDeploymentContext, getMainDeployer, getMetaData, getMutableMetaData, getMutableScope, getName, getRelativePath, getRequiredStage, getResourceClassLoader, getResourceLoader, getScope, getSimpleName, getTopLevel, getTransientManagedObjects, hasAttachments, isAttachmentPresent, isComponent, isTopLevel, readExternal, removeAttachment, removeClassLoader, removeComponent, removeControllerContextName, removeIDependOn, setMutableScope, setRequiredStage, setScope, visit, writeExternal |
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.AbstractMutableAttachments |
---|
addAttachment, addAttachment, removeAttachment, removeAttachment, setAttachments |
Methods inherited from class org.jboss.deployers.spi.attachments.helpers.AbstractAttachments |
---|
getAttachment, getAttachment, isAttachmentPresent, isAttachmentPresent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.deployers.structure.spi.DeploymentUnit |
---|
addComponent, addControllerContextName, addIDependOn, createClassLoader, getAllMetaData, getComponent, getComponents, getControllerContextName, getControllerContextNames, getDependencyInfo, getMainDeployer, getMetaData, getMutableMetaData, getMutableScope, getName, getRelativePath, getRequiredStage, getResourceClassLoader, getResourceLoader, getScope, getSimpleName, getTopLevel, getTransientManagedObjects, isComponent, isTopLevel, removeClassLoader, removeComponent, removeControllerContextName, removeIDependOn, setMutableScope, setRequiredStage, setScope, visit |
Methods inherited from interface org.jboss.deployers.spi.attachments.MutableAttachments |
---|
addAttachment, addAttachment, clear, clearChangeCount, getChangeCount, removeAttachment, removeAttachment, removeAttachment, setAttachments |
Methods inherited from interface org.jboss.deployers.spi.attachments.Attachments |
---|
getAttachment, getAttachment, hasAttachments, isAttachmentPresent, isAttachmentPresent, isAttachmentPresent |
Constructor Detail |
---|
public MockDeploymentUnit(String name)
public MockDeploymentUnit(String name, org.jboss.deployers.structure.spi.DeploymentUnit parent)
Method Detail |
---|
public void addChild(org.jboss.deployers.structure.spi.DeploymentUnit child)
public List<org.jboss.deployers.structure.spi.DeploymentUnit> getChildren()
getChildren
in interface org.jboss.deployers.structure.spi.DeploymentUnit
getChildren
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
public org.jboss.deployers.structure.spi.DeploymentUnit getParent()
getParent
in interface org.jboss.deployers.structure.spi.DeploymentUnit
getParent
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
public Object addAttachment(String name, Object attachment)
addAttachment
in interface org.jboss.deployers.spi.attachments.MutableAttachments
addAttachment
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
public Object getAttachment(String name)
getAttachment
in interface org.jboss.deployers.spi.attachments.Attachments
getAttachment
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
public Map<String,Object> getAttachments()
getAttachments
in interface org.jboss.deployers.spi.attachments.Attachments
getAttachments
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
public String toString()
toString
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
public ClassLoader getClassLoader()
getClassLoader
in interface org.jboss.deployers.structure.spi.DeploymentUnit
getClassLoader
in class org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |