Examples of createResource()


Examples of org.apache.felix.bundlerepository.impl.DataModelHelperImpl.createResource()

            for ( File file : files )
            {
                try
                {
                    ResourceImpl resource = ( ResourceImpl ) dmh.createResource( file.toURI().toURL() );
                    if ( resource != null )
                    {
                        repository.addResource( resource );
                        doTemplate( mavenRepoUri, file, resource );
                        log.info( "Adding resource: " + file );
View Full Code Here

Examples of org.apache.felix.deploymentadmin.itest.util.DeploymentPackageBuilder.createResource()

    public void testForcedUninstallDeploymentPackageWithMissingResourceProcessorSucceeds() throws Exception {
        DeploymentPackageBuilder dpBuilder = createNewDeploymentPackageBuilder("1.0.0");
        dpBuilder
            .add(dpBuilder.createBundleResource().setUrl(getTestBundle("bundle1")))
            .add(dpBuilder.createResourceProcessorResource().setUrl(getTestBundle("rp1")))
            .add(dpBuilder.createResource().setResourceProcessorPID(TEST_FAILING_BUNDLE_RP1).setUrl(getTestResource("test-config1.xml")));

        DeploymentPackage dp = installDeploymentPackage(dpBuilder);
        assertNotNull("No deployment package returned?!", dp);

        awaitRefreshPackagesEvent();
View Full Code Here

Examples of org.apache.muse.core.ResourceManager.createResource()

        //
        WsResource resource = null;
       
        try
        {
            resource = (WsResource)manager.createResource(endpoint);
        }
       
        catch (SoapFault error)
        {
            throw new RelationshipCreationFailedFault(error);
View Full Code Here

Examples of org.apache.myfaces.test.mock.resource.MockSimpleResourceHandler.createResource()

    }

    public void testCreateResource() throws Exception
    {
        ResourceHandler handler = new MockSimpleResourceHandler(_documentRoot);
        Resource resource = handler.createResource("testfile.js", "testlib");
        assertNotNull("resource could not be created", resource);
        assertTrue(resource.getURL().toString().endsWith(
                "org/apache/myfaces/test/mock/resources/testlib/testfile.js"));
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.Assembler.createResource()

    protected void install(ResourceInfo serviceInfo) throws OpenEJBException {
        if (sys != null) {
            sys.facilities.resources.add(serviceInfo);
        } else if (!offline) {
            Assembler assembler = SystemInstance.get().getComponent(Assembler.class);
            assembler.createResource(serviceInfo);
        }
    }

    public OpenEjbConfiguration getOpenEjbConfiguration() throws OpenEJBException {
View Full Code Here

Examples of org.atomojo.app.db.Entry.createResource()

               file += "."+ext;
            }
         }
         EntryMedia media;
         try {
            media = entry.createResource(file,mediaType);
         } catch (SQLException ex) {
            try {
               entry.delete(null);
            } catch (SQLException ox) {
               log.log(Level.SEVERE,"Cannot delete entry for exception cleanup.",ox);
View Full Code Here

Examples of org.codehaus.janino.util.resource.ResourceCreator.createResource()

                        resourceName.substring(resourceName.lastIndexOf('/') + 1)
                    );
                }
            };
        }
        OutputStream os = rc.createResource(classFileResourceName);
        try {
            if (DEBUG) {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                classFile.store(baos);
                byte[] ba = baos.toByteArray();
View Full Code Here

Examples of org.corrib.s3b.sscf.manage.BookmarksHelper.createResource()

    Person person = null;//PersonFactory.getPersonIfExists(new URIImpl(ownerMbox), null,innerModel);
    //if (person == null) {
    //  person = PersonFactory.createPerson(ownerMbox, null,innerModel);
    //}
    BookmarksHelper bh = new BookmarksHelper(dirUri);
    String uri = bh.createResource(dirUri, dirLabel, dirComment, person,true);
   
    try
    {
      innerModel.addStatement(null,innerModel.createURI(uri), innerModel.createURI(S3B_SSCF.isIn), innerModel.createURI(ownerMbox));
    }
View Full Code Here

Examples of org.davinci.server.user.IUser.createResource()

        resp.sendError(HttpServletResponse.SC_NOT_FOUND);
        return;
      }
      /* user is trying to save over a library path */
      if ( file.isVirtual() ) {
        file = user.createResource(path, file.isDirectory());
        if(file.isDirectory())
          file.mkdir();
        else
           file.createNewInstance();
      }
View Full Code Here

Examples of org.eclipse.bpel.model.resource.BPELResourceFactoryImpl.createResource()

        //javax.xml.transform.Result result = bpelOutputResolver.createBpelOutput(process.getTargetNamespace(), fileName);
        javax.xml.transform.Result result = createBpelOutput(process.getTargetNamespace(), fileName);
        if(result instanceof StreamResult) {           
          final OutputStream outstream = ((StreamResult)result).getOutputStream();         
          URI uri = URI.createPlatformResourceURI(fileName);
          BPELResource resource =  (org.eclipse.bpel.model.resource.BPELResource)brsf.createResource(uri);
          fixPartnerLinkPrefixes(resource,process,namespacePrefix);
          resource.getContents().add(process);
          HashSet<XSDSchema> schemaDeps = processSchemaDeps.get(process);
          for (XSDSchema schema : schemaDeps){
            resource.getPrefixToNamespaceMap().put(schemaNsPrefixMap.get(schema.getTargetNamespace()), schema.getTargetNamespace());
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.