public final class DeploymentResourceSupport extends Object
Modifier | Constructor and Description |
---|---|
protected |
DeploymentResourceSupport(DeploymentUnit deploymentUnit) |
Modifier and Type | Method and Description |
---|---|
org.jboss.dmr.ModelNode |
getDeploymentSubModel(String subsystemName,
PathAddress address)
Gets the sub-model for a components from the deployment itself.
|
org.jboss.dmr.ModelNode |
getDeploymentSubModel(String subsystemName,
PathElement address)
Gets the sub-model for a components from the deployment itself.
|
org.jboss.dmr.ModelNode |
getDeploymentSubsystemModel(String subsystemName)
Get the subsystem deployment model root.
|
boolean |
hasDeploymentSubModel(String subsystemName,
PathAddress address)
Checks to see if a resource has already been registered for the specified address on the subsystem.
|
boolean |
hasDeploymentSubModel(String subsystemName,
PathElement address)
Checks to see if a resource has already been registered for the specified address on the subsystem.
|
boolean |
hasDeploymentSubsystemModel(String subsystemName)
Checks to see if a subsystem resource has already been registered for the deployment.
|
org.jboss.dmr.ModelNode |
registerDeploymentSubResource(String subsystemName,
PathAddress address,
Resource resource)
Registers the provided resource as the resource for the
last element of the address. |
org.jboss.dmr.ModelNode |
registerDeploymentSubsystemResource(String subsystemName,
Resource resource)
Registers the resource to the parent deployment resource.
|
protected DeploymentResourceSupport(DeploymentUnit deploymentUnit)
public boolean hasDeploymentSubsystemModel(String subsystemName)
subsystemName
- the name of the subsystemtrue
if the subsystem exists on the deployment otherwise false
public org.jboss.dmr.ModelNode getDeploymentSubsystemModel(String subsystemName)
If the subsystem resource does not exist one will be created.
subsystemName
- the subsystem name.public org.jboss.dmr.ModelNode registerDeploymentSubsystemResource(String subsystemName, Resource resource)
subsystemName
- the subsystem nameresource
- the resource to be used for the subsystem on the deploymentIllegalStateException
- if the subsystem resource already existspublic boolean hasDeploymentSubModel(String subsystemName, PathElement address)
subsystemName
- the name of the subsystemaddress
- the address to checktrue
if the address exists on the subsystem otherwise false
public boolean hasDeploymentSubModel(String subsystemName, PathAddress address)
subsystemName
- the name of the subsystemaddress
- the address to checktrue
if the address exists on the subsystem otherwise false
public org.jboss.dmr.ModelNode getDeploymentSubModel(String subsystemName, PathElement address)
ExtensionContext
and
SubsystemRegistration.registerDeploymentModel(org.jboss.as.controller.ResourceDefinition)
.
If the subsystem resource does not exist it will be created. If no resource exists for the address parameter on the resource it also be created.
subsystemName
- the name of the subsystemaddress
- the path address this sub-model should return the model forpublic org.jboss.dmr.ModelNode getDeploymentSubModel(String subsystemName, PathAddress address)
ExtensionContext
and
SubsystemRegistration.registerDeploymentModel(org.jboss.as.controller.ResourceDefinition)
.
The subsystem resource as well as each PathAddress.getParent()
parent element}
from the address will be created if it does not already exist.
subsystemName
- the name of the subsystemaddress
- the path address this sub-model should return the model forpublic org.jboss.dmr.ModelNode registerDeploymentSubResource(String subsystemName, PathAddress address, Resource resource)
last element
of the address. Operations, metrics and descriptions have to be registered as part of the
subsystem registration ExtensionContext
and SubsystemRegistration.registerDeploymentModel(org.jboss.as.controller.ResourceDefinition)
.
The subsystem resource as well as each PathAddress.getParent()
parent element}
from the address will be created if it does not already exist.
subsystemName
- the subsystem name the model was registeredaddress
- the path address this sub-model should be created inresource
- the resource to be registered as sub-modulemodel
from the resource parameterIllegalStateException
- if the last
resource already existsCopyright © 2023 JBoss by Red Hat. All rights reserved.