for (final Resource.ResourceEntry entry : resource.getChildren(childType)) { PathElement path = entry.getPathElement(); if (!entry.isRuntime() && removeChildRecursively(path)) { ImmutableManagementResourceRegistration mrr = context.getResourceRegistration().getSubModel(PathAddress.pathAddress(path)); if (!mrr.isRuntimeOnly() && !mrr.isAlias()) {
for (final Resource.ResourceEntry entry : resource.getChildren(childType)) { PathElement path = entry.getPathElement(); if (!entry.isRuntime() && removeChildRecursively(path)) { ImmutableManagementResourceRegistration mrr = context.getResourceRegistration().getSubModel(PathAddress.pathAddress(path)); if (!mrr.isRuntimeOnly() && !mrr.isAlias()) {
private void addAllAddresses(ImmutableManagementResourceRegistration mrr, PathAddress current, Resource resource, Set<PathAddress> addresses) { addresses.add(current); for (String name : getNonIgnoredChildTypes(mrr)) { for (ResourceEntry entry : resource.getChildren(name)) { if (!entry.isProxy() && !entry.isRuntime()) { addAllAddresses(mrr.getSubModel(PathAddress.pathAddress(entry.getPathElement())), current.append(entry.getPathElement()), entry, addresses); } } } }
private void addAllAddresses(ImmutableManagementResourceRegistration mrr, PathAddress current, Resource resource, Set<PathAddress> addresses) { addresses.add(current); for (String name : getNonIgnoredChildTypes(mrr)) { for (ResourceEntry entry : resource.getChildren(name)) { if (!entry.isProxy() && !entry.isRuntime()) { addAllAddresses(mrr.getSubModel(PathAddress.pathAddress(entry.getPathElement())), current.append(entry.getPathElement()), entry, addresses); } } } }
private static boolean removeInCurrentStep(Resource resource) { for (String childType : resource.getChildTypes()) { for (Resource.ResourceEntry entry : resource.getChildren(childType)) { if (!entry.isRuntime() && resource.hasChild(entry.getPathElement())) { return false; } } } return true; }
private static boolean removeInCurrentStep(Resource resource) { for (String childType : resource.getChildTypes()) { for (Resource.ResourceEntry entry : resource.getChildren(childType)) { if (!entry.isRuntime() && resource.hasChild(entry.getPathElement())) { return false; } } } return true; }