Package org.jboss.as.server.deployment
Interface DeploymentUnit
-
- All Superinterfaces:
Attachable
public interface DeploymentUnit extends Attachable
The deployment unit. This object retains data which is persistent for the life of the deployment.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.jboss.dmr.ModelNodecreateDeploymentSubModel(String subsystemName, PathAddress address)org.jboss.dmr.ModelNodecreateDeploymentSubModel(String subsystemName, PathAddress address, Resource resource)org.jboss.dmr.ModelNodecreateDeploymentSubModel(String subsystemName, PathElement address)org.jboss.dmr.ModelNodegetDeploymentSubsystemModel(String subsystemName)Deprecated.StringgetName()Get the simple name of the deployment unit.DeploymentUnitgetParent()Get the deployment unit of the parent (enclosing) deployment.org.jboss.msc.service.ServiceNamegetServiceName()Get the service name of the root deployment unit service.org.jboss.msc.service.ServiceRegistrygetServiceRegistry()Get the service registry.-
Methods inherited from interface org.jboss.as.server.deployment.Attachable
addToAttachmentList, getAttachment, getAttachmentList, hasAttachment, putAttachment, removeAttachment
-
-
-
-
Method Detail
-
getServiceName
org.jboss.msc.service.ServiceName getServiceName()
Get the service name of the root deployment unit service.- Returns:
- the service name
-
getParent
DeploymentUnit getParent()
Get the deployment unit of the parent (enclosing) deployment.- Returns:
- the parent deployment unit, or
nullif this is a top-level deployment
-
getName
String getName()
Get the simple name of the deployment unit.- Returns:
- the simple name
-
getServiceRegistry
org.jboss.msc.service.ServiceRegistry getServiceRegistry()
Get the service registry.- Returns:
- the service registry
-
getDeploymentSubsystemModel
@Deprecated org.jboss.dmr.ModelNode getDeploymentSubsystemModel(String subsystemName)
Deprecated.Get the extension deployment model root.- Parameters:
subsystemName- the subsystem name.- Returns:
- the model
-
createDeploymentSubModel
@Deprecated org.jboss.dmr.ModelNode createDeploymentSubModel(String subsystemName, PathElement address)
Deprecated.Create a management sub-model for components from the deployment itself. Operations, metrics and descriptions have to be registered as part of the subsystem registrationExtensionContextand SubsystemRegistration.registerDeploymentModel(org.jboss.as.controller.ResourceDefinition).- Parameters:
subsystemName- the subsystem name the model was registeredaddress- the path address this sub-model should be created in- Returns:
- the model node
-
createDeploymentSubModel
@Deprecated org.jboss.dmr.ModelNode createDeploymentSubModel(String subsystemName, PathAddress address)
Deprecated.This method is extension ofcreateDeploymentSubModel(String, PathElement), the difference is that this method traverses recursively till last element inPathAddress.- Parameters:
subsystemName- the subsystem name the model was registeredaddress- the path address this sub-model should be created in- Returns:
- the model node
-
createDeploymentSubModel
@Deprecated org.jboss.dmr.ModelNode createDeploymentSubModel(String subsystemName, PathAddress address, Resource resource)
Deprecated.This method is extension ofcreateDeploymentSubModel(String, PathAddress), the difference is that it accepts resource that should be registered at specified path.- Parameters:
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 submodule- Returns:
- the model node
-
-