/** * Constructor for use by operation step handlers. * * @param type the name of the type some of whose resources are to be ignored * @param names the specific instances of type that should be ignored. Either {@link org.jboss.dmr.ModelType#LIST} * or {@link org.jboss.dmr.ModelType#UNDEFINED}; cannot be {@code null} * @param wildcard {@code true} if all resources of the type should be matched. Use {@code null} to indicate * this is undefined by the user, meaning {@code false} in practical effect */ public IgnoreDomainResourceTypeResource(String type, final ModelNode names, final Boolean wildcard) { super(ModelDescriptionConstants.IGNORED_RESOURCE_TYPE, type); setNames(names); setWildcard(wildcard); }
/** * Constructor for use by operation step handlers. * * @param type the name of the type some of whose resources are to be ignored * @param names the specific instances of type that should be ignored. Either {@link org.jboss.dmr.ModelType#LIST} * or {@link org.jboss.dmr.ModelType#UNDEFINED}; cannot be {@code null} * @param wildcard {@code true} if all resources of the type should be matched. Use {@code null} to indicate * this is undefined by the user, meaning {@code false} in practical effect */ public IgnoreDomainResourceTypeResource(String type, final ModelNode names, final Boolean wildcard) { super(ModelDescriptionConstants.IGNORED_RESOURCE_TYPE, type); setNames(names); setWildcard(wildcard); }
/** * Constructor for use by operation step handlers. * * @param type the name of the type some of whose resources are to be ignored * @param names the specific instances of type that should be ignored. Either {@link ModelType#LIST} * or {@link ModelType#UNDEFINED}; cannot be {@code null} * @param wildcard {@code true} if all resources of the type should be matched. Use {@code null} to indicate * this is undefined by the user, meaning {@code false} in practical effect */ public IgnoreDomainResourceTypeResource(String type, final ModelNode names, final Boolean wildcard) { super(ModelDescriptionConstants.IGNORED_RESOURCE_TYPE, type); setNames(names); setWildcard(wildcard); }
/** {@inheritDoc */ @Override public void writeModel(ModelNode newModel) { synchronized (model) { if (newModel.hasDefined(WILDCARD.getName())) { setWildcard(newModel.get(WILDCARD.getName()).asBoolean()); } setNames(newModel.get(NAMES.getName())); } }
/** {@inheritDoc */ @Override public void writeModel(ModelNode newModel) { synchronized (model) { if (newModel.hasDefined(WILDCARD.getName())) { setWildcard(newModel.get(WILDCARD.getName()).asBoolean()); } setNames(newModel.get(NAMES.getName())); } }
/** {@inheritDoc */ @Override public void writeModel(ModelNode newModel) { synchronized (model) { if (newModel.hasDefined(WILDCARD.getName())) { setWildcard(newModel.get(WILDCARD.getName()).asBoolean()); } setNames(newModel.get(NAMES.getName())); } }
ModelNode wildcardNode = IgnoredDomainTypeResourceDefinition.WILDCARD.resolveModelAttribute(context, mockOp); Boolean wildcard = wildcardNode.isDefined() ? wildcardNode.asBoolean() : null; resource.setWildcard(wildcard);
ModelNode wildcardNode = IgnoredDomainTypeResourceDefinition.WILDCARD.resolveModelAttribute(context, mockOp); Boolean wildcard = wildcardNode.isDefined() ? wildcardNode.asBoolean() : null; resource.setWildcard(wildcard);
ModelNode wildcardNode = IgnoredDomainTypeResourceDefinition.WILDCARD.resolveModelAttribute(context, mockOp); Boolean wildcard = wildcardNode.isDefined() ? wildcardNode.asBoolean() : null; resource.setWildcard(wildcard);