Examples of convertToTargetAddress()


Examples of org.jboss.as.controller.registry.AliasEntry.convertToTargetAddress()

                if (resource.hasChildren(childType)) {
                    set.addAll(resource.getChildrenNames(childType));
                }
            } else {
                //PathAddress target = aliasEntry.getTargetAddress();
                PathAddress target = aliasEntry.convertToTargetAddress(addr.append(element));
                PathAddress targetParent = target.subAddress(0, target.size() - 1);
                Resource parentResource = context.readResourceFromRoot(targetParent);
                if (parentResource.hasChildren(target.getLastElement().getKey())) {
                    set.add(element.getValue());
                }
View Full Code Here

Examples of org.jboss.as.controller.registry.AliasEntry.convertToTargetAddress()

        //Get hold of the real registry if it was an alias
        final ImmutableManagementResourceRegistration registry = context.getResourceRegistration();

        AliasEntry aliasEntry = registry.getAliasEntry();
        final ImmutableManagementResourceRegistration realRegistry = aliasEntry == null ? registry : context.getRootResourceRegistration().getSubModel(aliasEntry.convertToTargetAddress(PathAddress.pathAddress(opAddr)));

        final DescriptionProvider descriptionProvider = realRegistry.getModelDescription(PathAddress.EMPTY_ADDRESS);
        final Locale locale = GlobalOperationHandlers.getLocale(context, operation);

        final ModelNode nodeDescription = descriptionProvider.getModelDescription(locale);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.