Package org.jboss.as.controller.registry

Examples of org.jboss.as.controller.registry.AliasEntry


            String childType = element.getKey();
            if (validChildType != null && !validChildType.equals(childType)) {
                continue;
            }
            final ImmutableManagementResourceRegistration childRegistration = registry.getSubModel(PathAddress.pathAddress(element));
            final AliasEntry aliasEntry = childRegistration.getAliasEntry();

            Set<String> set = result.get(childType);
            if (set == null) {
                set = new LinkedHashSet<String>();
                result.put(childType, set);
            }

            if (aliasEntry == null) {
                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


        final boolean inheritedOps = INHERITED.resolveModelAttribute(context, operation).asBoolean();

        //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

        ManagementResourceRegistration moduleReg = resourceRegistration.registerSubModel(new LoginModuleResourceDefinition(Constants.ACL_MODULE));

        //https://issues.jboss.org/browse/WFLY-2474 acl-module was wrongly called login-module in 7.2.0
        resourceRegistration.registerAlias(
                PathElement.pathElement(Constants.LOGIN_MODULE),
                new AliasEntry(moduleReg) {
                    @Override
                    public PathAddress convertToTargetAddress(PathAddress address) {
                        PathElement element = address.getLastElement();
                        element = PathElement.pathElement(Constants.ACL_MODULE, element.getValue());
                        return address.subAddress(0, address.size() -1).append(element);
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.registry.AliasEntry

Copyright © 2018 www.massapicom. 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.