public class WildcardReadResourceDescriptionAddressHack extends Object
When r-r-d is called for a wildcard address, which is an alias, we want r-r-d to return the invoked address. However, AliasStepHandler replaces the operation address with the real address, which in turn means that the r-r-d handler never knows about the real address. This class contains two methods:
attachAliasAddress()
called by AliasStepHandler
to attach the original/alias PathAddressdetachAliasAddress()
called by GlobalOperationHandlers.RegistrationAddressResolver
(called by the r-r-d handler) to detach the original PathAddress:read-resource-description
we avoid the risk of a call to another operation at an alias address pollutes a
subsequent :read-resource-description
call at a 'real' address.Constructor and Description |
---|
WildcardReadResourceDescriptionAddressHack() |
Modifier and Type | Method and Description |
---|---|
static PathAddress |
detachAliasAddress(OperationContext context,
org.jboss.dmr.ModelNode operation) |
public WildcardReadResourceDescriptionAddressHack()
public static PathAddress detachAliasAddress(OperationContext context, org.jboss.dmr.ModelNode operation)
Copyright © 2023 JBoss by Red Hat. All rights reserved.