public interface DeploymentUnit extends Attachable
| Modifier and Type | Method and Description |
|---|---|
org.jboss.dmr.ModelNode |
createDeploymentSubModel(String subsystemName,
PathAddress address)
|
org.jboss.dmr.ModelNode |
createDeploymentSubModel(String subsystemName,
PathAddress address,
Resource resource)
|
org.jboss.dmr.ModelNode |
createDeploymentSubModel(String subsystemName,
PathElement address)
|
org.jboss.dmr.ModelNode |
getDeploymentSubsystemModel(String subsystemName)
Deprecated.
|
String |
getName()
Get the simple name of the deployment unit.
|
DeploymentUnit |
getParent()
Get the deployment unit of the parent (enclosing) deployment.
|
org.jboss.msc.service.ServiceName |
getServiceName()
Get the service name of the root deployment unit service.
|
org.jboss.msc.service.ServiceRegistry |
getServiceRegistry()
Get the service registry.
|
addToAttachmentList, getAttachment, getAttachmentList, hasAttachment, putAttachment, removeAttachmentorg.jboss.msc.service.ServiceName getServiceName()
DeploymentUnit getParent()
null if this is a top-level deploymentString getName()
org.jboss.msc.service.ServiceRegistry getServiceRegistry()
@Deprecated org.jboss.dmr.ModelNode getDeploymentSubsystemModel(String subsystemName)
DeploymentResourceSupport.getDeploymentSubsystemModel(String)subsystemName - the subsystem name.@Deprecated org.jboss.dmr.ModelNode createDeploymentSubModel(String subsystemName, PathElement address)
DeploymentResourceSupport.getDeploymentSubModel(String, org.jboss.as.controller.PathElement)ExtensionContext and
SubsystemRegistration.registerDeploymentModel(org.jboss.as.controller.ResourceDefinition).subsystemName - the subsystem name the model was registeredaddress - the path address this sub-model should be created in@Deprecated org.jboss.dmr.ModelNode createDeploymentSubModel(String subsystemName, PathAddress address)
DeploymentResourceSupport.getDeploymentSubModel(String, org.jboss.as.controller.PathAddress)createDeploymentSubModel(String, PathElement), the difference is that this method traverses recursively till last
element in PathAddress.subsystemName - the subsystem name the model was registeredaddress - the path address this sub-model should be created in@Deprecated org.jboss.dmr.ModelNode createDeploymentSubModel(String subsystemName, PathAddress address, Resource resource)
DeploymentResourceSupport.registerDeploymentSubResource(String, org.jboss.as.controller.PathAddress, org.jboss.as.controller.registry.Resource)createDeploymentSubModel(String, PathAddress), the difference is that it accepts resource that should be registered
at specified path.subsystemName - the subsystem name the model was registeredaddress - the path address this sub-model should be created inresource - the resource that needs to be registered as submoduleCopyright © 2021 JBoss by Red Hat. All rights reserved.