public class AddressContext extends Object
ModelNode representing an active operation.
Operations include adding/removing resources which are part of the ModeShape subsystem.
This class can be used to retrieve ModeShape & server related information based on the PathAddress
of the address of the current operation. The structure of the PathAddress varies based on the server mode (STANDALONE/DOMAIN)| Modifier and Type | Method and Description |
|---|---|
static AddressContext |
forOperation(ModelNode operation)
Creates a new context instance which wraps the given operation.
|
String |
lastPathElementValue()
Returns the value of the last path element from the address of wrapped operation.
|
String |
repositoryName()
Returns the name of the ModeShape repository, based on the address of the wrapped operation.
|
public String repositoryName()
String which is either the name of the repository or null if there is no repository segement
in the address for the current operation.public String lastPathElementValue()
nullpublic static AddressContext forOperation(ModelNode operation)
ModelDescriptionConstants.OP_ADDR attribute.operation - a ModelNode instance, never nullinstance, never nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.