Examples of install()


Examples of org.apache.ace.agent.DeploymentHandler.install()

        DeploymentHandler deploymentHandler = addTestMock(DeploymentHandler.class);
        expect(deploymentHandler.getInstalledVersion()).andReturn(m_version2).anyTimes();
        expect(deploymentHandler.getAvailableVersions()).andReturn(m_availableVersions).anyTimes();
        expect(deploymentHandler.getDownloadHandle(eq(m_version3), eq(true))).andReturn(downloadHandle).once();
        deploymentHandler.install(notNull(InputStream.class));
        expectLastCall().once();

        m_agentContext = mockAgentContext();
        m_agentContext.setHandler(DeploymentHandler.class, deploymentHandler);
        replayTestMocks();
View Full Code Here

Examples of org.apache.ace.agent.UpdateHandler.install()

                    // Download is complete, ask the user once more if we're allowed to install the update...
                    if (m_agentUser.installAvailableUpdate(updateType, getAgentId(), installed, available)) {
                        System.out.printf("Installing %s update (from v%s to v%s)...%n", updateType, installed, available);

                        // We've confirmation that we can install this update...
                        updateHandler.install(result.getInputStream());
                    }

                    // Throw away downloaded packages...
                    downloadHandle.discard();
                }
View Full Code Here

Examples of org.apache.ace.webui.vaadin.UploadHelper.GenericUploadHandler.install()

            }
        };

        final Upload uploadArtifact = new Upload();
        uploadArtifact.setCaption("Upload Artifact");
        uploadHandler.install(uploadArtifact);

        final DragAndDropWrapper finalUploadedArtifacts = new DragAndDropWrapper(uploadedArtifacts);
        finalUploadedArtifacts.setDropHandler(new ArtifactDropHandler(uploadHandler));

        addListener(new Window.CloseListener() {
View Full Code Here

Examples of org.apache.activemq.transport.mock.MockTransport.install()

        final CountDownLatch publishDone = new CountDownLatch(1);
       
        // The MockTransport is on the remote connection.
        // Slip in a new transport filter after the MockTransport
        MockTransport mt = (MockTransport) connection3.getTransport().narrow(MockTransport.class);
        mt.install(new TransportFilter(mt.getNext()) {
            public void oneway(Object command) throws IOException {
                log.info("Dropping: "+command);
                // just eat it! to simulate a recent failure.
            }
        });
View Full Code Here

Examples of org.apache.aries.application.management.AriesApplicationManager.install()

 
  /* Install and start the blog eba */
  URL urlToEba = getUrlToEba("org.apache.aries.samples.blog", "org.apache.aries.samples.blog.jpa.eba");
  AriesApplicationManager manager = getOsgiService(AriesApplicationManager.class);
  AriesApplication app = manager.createApplication(urlToEba);
  AriesApplicationContext ctx = manager.install(app);
  ctx.start();

    /* Find and check all the blog sample bundles */

  Bundle bapi = getInstalledBundle("org.apache.aries.samples.blog.api");
View Full Code Here

Examples of org.apache.aries.application.management.spi.framework.BundleFramework.install()

          Map<DeploymentContent, BundleSuggestion> suggestions =
            info.suggestBundle(info.getNewMetadata().getApplicationDeploymentContents());
         
          BundleSuggestion toInstall = suggestions.values().iterator().next();
         
          Bundle newBundle = fwk.install(toInstall, info.getApplication());
          info.register(newBundle);
          if (info.startBundles()) fwk.start(newBundle);
         
        } catch (Exception e) {
          throw new RuntimeException(e);
View Full Code Here

Examples of org.apache.aries.util.FragmentBuilder.install()

                        builder.addImports(exportPackage.getName() + providerConstraint);
                    }
                   
                    Bundle fragment;
                    try {
                        fragment = builder.install(containerContext);
                    } catch (IOException e) {
                        throw new RuntimeException("Error installing JPA fragment bundle", e);
                    } catch (BundleException e) {
                        throw new RuntimeException("Error installing JPA fragment bundle", e);
                    }
View Full Code Here

Examples of org.apache.catalina.Deployer.install()

                url=new URL("jar:"+url.toString()+"!/");

            if (Constants.DEBUG)
                logger.debug("Application URL \""+url.toString()+"\"");

            deployer.install(applPath, url);
            StandardContext context=null;
            context=(StandardContext)deployer.findDeployedApp(applPath);
            context.setDebug(connection.getConnector().getDebug());
            return(context);
        } else {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.common.widgets.DialogContentAssistant.install()

        DialogContentAssistant fca = new DialogContentAssistant();
        fca.enableAutoInsert( true );
        fca.enableAutoActivation( true );
        fca.setAutoActivationDelay( 100 );
        fca.setContentAssistProcessor( contentAssistProcessor, IDocument.DEFAULT_CONTENT_TYPE );
        fca.install( filterCombo );

        // Filter editor button
        filterEditorButton = BaseWidgetUtils.createButton( parent, "F&ilter Editor...", 1 );
        filterEditorButton.addSelectionListener( new SelectionAdapter()
        {
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.ui.widgets.DialogContentAssistant.install()

        DialogContentAssistant fca = new DialogContentAssistant();
        fca.enableAutoInsert( true );
        fca.enableAutoActivation( true );
        fca.setAutoActivationDelay( 100 );
        fca.setContentAssistProcessor( contentAssistProcessor, IDocument.DEFAULT_CONTENT_TYPE );
        fca.install( filterCombo );

        // Filter editor button
        filterEditorButton = BaseWidgetUtils.createButton( parent, "F&ilter Editor...", 1 );
        filterEditorButton.addSelectionListener( new SelectionAdapter()
        {
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.