|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeploymentUnit
DeploymentUnit.
A deployment unit represents a single unit that deployers work with.
| Method Summary | ||
|---|---|---|
DeploymentUnit |
addComponent(String name)
Add a component |
|
void |
addControllerContextName(Object name)
Add controller context name. |
|
void |
addIDependOn(org.jboss.dependency.spi.DependencyItem dependency)
Add a dependency |
|
boolean |
createClassLoader(ClassLoaderFactory factory)
Create the classloader |
|
|
getAllMetaData(Class<T> type)
Get all the metadata for the expected type |
|
List<DeploymentUnit> |
getChildren()
Get the children |
|
ClassLoader |
getClassLoader()
Gets the classloader for this deployment unit |
|
List<DeploymentUnit> |
getComponents()
Get the components |
|
Set<Object> |
getControllerContextNames()
Get the controller context names. |
|
org.jboss.dependency.spi.DependencyInfo |
getDependencyInfo()
Get the dependency info |
|
org.jboss.metadata.spi.MetaData |
getMetaData()
Get the metadata for this deployment unit |
|
org.jboss.metadata.spi.MutableMetaData |
getMutableMetaData()
Get the mutable metadata for this deployment unit |
|
org.jboss.metadata.spi.scope.ScopeKey |
getMutableScope()
Get the mutable scope |
|
String |
getName()
Get the deployment units name |
|
DeploymentUnit |
getParent()
Get the parent deployment unit |
|
String |
getRelativePath()
Get the path of this deployment relative to the top of the deployment vfs path ------------------- relative path deploy/some.ear "" deploy/some.ear/x.ejb "/x.ejb" deploy/some.ear/y.sar "/y.sar" deploy/some.ear/y.sar/z.rar "/y.sar/z.rar" |
|
ClassLoader |
getResourceClassLoader()
Get a resource classloader |
|
DeploymentResourceLoader |
getResourceLoader()
Get a resource loader |
|
org.jboss.metadata.spi.scope.ScopeKey |
getScope()
Get the scope |
|
String |
getSimpleName()
Get the simple vfs name of the deployment unit. |
|
DeploymentUnit |
getTopLevel()
Get the top leve deployment unit |
|
org.jboss.deployers.spi.attachments.MutableAttachments |
getTransientManagedObjects()
Get the transient managed objects |
|
Set<String> |
getTypes()
Get the deployment types associated with this deployment. |
|
boolean |
isComponent()
Whether this unit is a component |
|
void |
removeClassLoader(ClassLoaderFactory factory)
Remove the classloader |
|
boolean |
removeComponent(String name)
Remove a component |
|
void |
removeControllerContextName(Object name)
Remove controller context name. |
|
void |
removeIDependOn(org.jboss.dependency.spi.DependencyItem dependency)
Remove a dependency |
|
void |
setMutableScope(org.jboss.metadata.spi.scope.ScopeKey key)
Set the mutable scope |
|
void |
setScope(org.jboss.metadata.spi.scope.ScopeKey key)
Set the scope |
|
| Methods inherited from interface org.jboss.deployers.spi.attachments.MutableAttachments |
|---|
addAttachment, addAttachment, addAttachment, clear, clearChangeCount, getChangeCount, removeAttachment, removeAttachment, removeAttachment, setAttachments |
| Methods inherited from interface org.jboss.deployers.spi.attachments.Attachments |
|---|
getAttachment, getAttachment, getAttachment, getAttachments, hasAttachments, isAttachmentPresent, isAttachmentPresent, isAttachmentPresent |
| Method Detail |
|---|
String getName()
Set<Object> getControllerContextNames()
void addControllerContextName(Object name)
name - the controller context namevoid removeControllerContextName(Object name)
name - the controller context nameString getSimpleName()
String getRelativePath()
Set<String> getTypes()
org.jboss.metadata.spi.scope.ScopeKey getScope()
void setScope(org.jboss.metadata.spi.scope.ScopeKey key)
key - the scope keyorg.jboss.metadata.spi.scope.ScopeKey getMutableScope()
void setMutableScope(org.jboss.metadata.spi.scope.ScopeKey key)
key - the mutable scope keyorg.jboss.metadata.spi.MetaData getMetaData()
org.jboss.metadata.spi.MutableMetaData getMutableMetaData()
ClassLoader getClassLoader()
boolean createClassLoader(ClassLoaderFactory factory)
throws org.jboss.deployers.spi.DeploymentException
factory - the classloader factory
IllegalArgumentException - for a null factory
org.jboss.deployers.spi.DeploymentException - for any errorvoid removeClassLoader(ClassLoaderFactory factory)
factory - the original factory used to create the classloader<T> Set<? extends T> getAllMetaData(Class<T> type)
T - the type to gettype - the type
IllegalArgumentException - if the type is nullorg.jboss.deployers.spi.attachments.MutableAttachments getTransientManagedObjects()
DeploymentUnit getTopLevel()
DeploymentUnit getParent()
List<DeploymentUnit> getChildren()
List<DeploymentUnit> getComponents()
boolean isComponent()
DeploymentUnit addComponent(String name)
name - the name
IllegalArgumentException - for a null nameboolean removeComponent(String name)
name - the name
IllegalArgumentException - for a null nameDeploymentResourceLoader getResourceLoader()
ClassLoader getResourceClassLoader()
org.jboss.dependency.spi.DependencyInfo getDependencyInfo()
void addIDependOn(org.jboss.dependency.spi.DependencyItem dependency)
dependency - the dependency to addvoid removeIDependOn(org.jboss.dependency.spi.DependencyItem dependency)
dependency - the dependency to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||