Examples of writeModel()


Examples of org.jboss.as.controller.registry.Resource.writeModel()

                    initializeExtension(module);
                }
            } else {
                continue;
            }
            resource.writeModel(resourceDescription.get("domain-resource-model"));
        }
        if (!context.isBooting()) {
            final Resource domainRootResource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
            final ModelNode endRoot = Resource.Tools.readModel(domainRootResource);
            final Set<ServerIdentity> affectedServers = new HashSet<ServerIdentity>();
View Full Code Here

Examples of org.jboss.as.controller.registry.Resource.writeModel()

                        final Resource resource = getResource(resourceAddress, rootResource, context);
                        if (resourceAddress.size() == 1 && resourceAddress.getElement(0).getKey().equals(EXTENSION)) {
                            // Extensions are handled in ApplyExtensionsHandler
                            continue;
                        }
                        resource.writeModel(resourceDescription.get("domain-resource-model"));
                    }

                    context.completeStep();
                }catch (Exception e) {
                    throw new OperationFailedException(e.getMessage());
View Full Code Here

Examples of org.jboss.as.controller.registry.Resource.writeModel()

                if (!appliedExensions.contains(module)) {
                    appliedExensions.add(module);
                    initializeExtension(module);
                }
            }
            resource.writeModel(resourceDescription.get("domain-resource-model"));

            // Track deployment and management content hashes and server group deployments so we can pull over the content we need
            if (resourceAddress.size() == 1) {
                PathElement pe = resourceAddress.getElement(0);
                String peKey = pe.getKey();
View Full Code Here

Examples of org.jboss.as.controller.registry.Resource.writeModel()

                    if (aNode != null)
                        aNode.set(value == null ? "" : value.toString());
                }
            }
            // Replace the model
            resource.writeModel(model);
        } catch (Exception e) {
            throw new OperationFailedException("JMX error: ", e);
        }

        context.completeStep();
View Full Code Here

Examples of org.jboss.as.controller.registry.Resource.writeModel()

        synthOp.get(contentAttribute.getName()).set(operation.get(ModelDescriptionConstants.VALUE));
        contentAttribute.validateAndSet(synthOp, model);

        final Resource resource = context.readResourceForUpdate(PathAddress.EMPTY_ADDRESS);
        // IMPORTANT: Use writeModel, as this is what causes the content to be flushed to the content repo!
        resource.writeModel(model);

        context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
    }
}
View Full Code Here

Examples of org.jboss.as.controller.registry.Resource.writeModel()

        }
        ModelNode model = new ModelNode();
        contentAttribute.validateAndSet(operation, model);

        // IMPORTANT: Use writeModel, as this is what causes the content to be flushed to the content repo!
        resource.writeModel(model);

        context.completeStep(OperationContext.RollbackHandler.NOOP_ROLLBACK_HANDLER);
    }

    @Override
View Full Code Here

Examples of org.objectstyle.woproject.maven2.wobootstrap.utils.PomGenerator.writeModel()

      tempPom.deleteOnExit();

      PomGenerator generator = new PomGenerator(artifactProperties);

      generator.writeModel(tempPom);

      artifactProperties.setProperty("pomFile", tempPom.getAbsolutePath());
    } catch (IOException exception) {
      getLog().info("Cannot create a pom file for " + artifactId);
    }
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.oscar3.recogniser.memm.MEMM.writeModel()

   */
  public static Document makeModel() throws Exception {
    Element modelRoot = new Element("model");
    modelRoot.appendChild(ExtractTrainingData.getInstance().toXML());
    MEMM memm = MEMMSingleton.getInstance();
    if(memm != null) modelRoot.appendChild(memm.writeModel());
    NESubtypes subtypes = NESubtypes.getInstance();
    if(subtypes.OK) modelRoot.appendChild(subtypes.toXML());
    return new Document(modelRoot);
  }
 
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.