Examples of createResource()


Examples of org.rhq.modules.plugins.jbossas7.HostControllerComponent.createResource()

        ResourceType rt = new ResourceType("ServerGroup", PLUGIN_NAME, ResourceCategory.SERVICE, null);

        String serverGroupName = "_test-sg";
        try {
            CreateResourceReport report = new CreateResourceReport(serverGroupName, rt, new Configuration(), rc, null);
            report = hcc.createResource(report);

            assert report != null : "Report was null.";
            assert report.getStatus() == CreateResourceStatus.SUCCESS : "Create was a failure: "
                + report.getErrorMessage();
        } finally {
View Full Code Here

Examples of org.richfaces.resource.ResourceFactory.createResource()

    }

    private void verifyResourcesPresent(Resource... expectedResources) {
        for (Resource expectedResource : expectedResources) {
            ResourceFactory resourceFactory = new ResourceFactoryImpl(null);
            Resource resource = resourceFactory.createResource(expectedResource.getResourceName(),
                    expectedResource.getLibraryName(), null);

            assertNotNull(
                    "resource is not present: " + expectedResource.getLibraryName() + ":" + expectedResource.getResourceName(),
                    resource);
View Full Code Here

Examples of org.richfaces.resource.ResourceFactoryImpl.createResource()

    }

    private void verifyResourcesPresent(Resource... expectedResources) {
        for (Resource expectedResource : expectedResources) {
            ResourceFactory resourceFactory = new ResourceFactoryImpl(null);
            Resource resource = resourceFactory.createResource(expectedResource.getResourceName(),
                    expectedResource.getLibraryName(), null);

            assertNotNull(
                    "resource is not present: " + expectedResource.getLibraryName() + ":" + expectedResource.getResourceName(),
                    resource);
View Full Code Here

Examples of org.w3c.tools.resources.indexer.ResourceIndexer.createResource()

      // Is this a useful indexer ?
      if ((rr_lastidx = rr_indexer) != null ) {
    try {
        ResourceIndexer indexer =
      (ResourceIndexer)rr_indexer.lock();
        resource = indexer.createResource(this,
                  req,
                  getDirectory(),
                  name,
                  defs) ;
        if ( resource != null )
View Full Code Here

Examples of org.xilaew.atg.model.activityTestCaseGraph.util.ActivityTestCaseGraphResourceFactoryImpl.createResource()

    // select one activity
    Activity activity = selectActivity(model);

    ActivityTestCaseGraphResourceFactoryImpl resFactory = new ActivityTestCaseGraphResourceFactoryImpl();
    Resource res = resFactory.createResource(URI.createFileURI(outFile));
    try {
      TCGActivity tcgActivity = UML2TCGActivity.transform(activity);
      ActTCGContinuityHelper.addContinuityConstraints(tcgActivity);
      res.getContents().add(tcgActivity);
    } catch (YouShallNotDoThisException e2) {
View Full Code Here

Examples of org.xmldb.api.base.Collection.createResource()

         saxReader.parse(new InputSource(fis));
         fis.close();
        
         // Create the XMLResource and store the document
         XMLResource resource =
               (XMLResource) col.createResource((String) table.get(XMLTools.NAME_OF),
                  "XMLResource");
         resource.setContent(ser.toString());
         col.storeResource(resource);
                          
         System.out.println("Added document " + table.get(XMLTools.COLLECTION) + "/" +
View Full Code Here

Examples of org.zanata.rest.client.IFixedTranslationResources.createResource()

    {
      final ZanataDetails details = new ZanataDetails();
      final String URI = details.getUrl();

      final IFixedTranslationResources client = ProxyFactory.create(IFixedTranslationResources.class, URI);
      final ClientResponse<String> response = client.createResource(details.getUsername(), details.getToken(), resource);
     
      final Status status = Response.Status.fromStatusCode(response.getStatus());
     
      if (status == Response.Status.CREATED)
      {
View Full Code Here

Examples of rocket.generator.rebind.GeneratorContext.createResource()

    // if a data url wasnt used copy the file and set the url to the server
    // file name.
    if (false == usingDataUrl) {
      // data urls are supported, write the file
      final String suffix = ImageFactoryConstants.IMAGE_RESOURCE_SUFFIX + image.getFileExtension();
      url = context.createResource(image.getContents(), suffix);

      context.debug("Module relative server url: \"" + url + "\".");

      final boolean prefetch = this.shouldPrefetchServerImage(method);
      if (prefetch) {
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.