Examples of execute()


Examples of org.jboss.dashboard.ui.panel.PanelDriver.execute()

                SectionPermission sectionPerm = SectionPermission.newInstance(panel.getSection(), SectionPermission.ACTION_VIEW);
                if (UserStatus.lookup().hasPermission(sectionPerm)) {
                    PanelProvider provider = panel.getInstance().getProvider();
                    if (provider.isEnabled()) {
                        PanelDriver handler = provider.getDriver();
                        CommandResponse response = handler.execute(panel, getRequest());
                        if (response != null)
                            requestContext.setResponse(response);
                        if (request.getServletPath().indexOf("/" + URLMarkupGenerator.COMMAND_RUNNER) != -1) {
                            requestContext.consumeURIPart(requestContext.getURIToBeConsumed());
                        }
View Full Code Here

Examples of org.jboss.dna.graph.commands.executor.CommandExecutor.execute()

        Path configNode = pathFactory.create(PATH_TO_CONFIGURATION_INFORMATION);

        try {
            // Get the repository node ...
            BasicGetNodeCommand getRepository = new BasicGetNodeCommand(configNode);
            executor.execute(getRepository);
            if (getRepository.hasError()) {
                throw new FederationException(FederationI18n.federatedRepositoryCannotBeFound.text(repositoryName));
            }

            // Get the first child node of the "dna:cache" node, since this represents the source used as the cache ...
View Full Code Here

Examples of org.jboss.dna.graph.connector.RepositoryConnection.execute()

             */
            public String call() throws Exception {
                final RepositoryConnection connection = connectionFactory.createConnection(sourceName);
                assert connection != null;
                try {
                    connection.execute(context, composite);
                } finally {
                    connection.close();
                }
                return sourceName;
            }
View Full Code Here

Examples of org.jboss.dna.graph.connectors.RepositoryConnection.execute()

    protected BasicGetNodeCommand getNode( Path path ) throws RepositorySourceException {
        // Check the cache first ...
        final ExecutionContext context = getExecutionContext();
        RepositoryConnection cacheConnection = getConnectionToCache();
        BasicGetNodeCommand fromCache = new BasicGetNodeCommand(path);
        cacheConnection.execute(context, fromCache);

        // Look at the cache results from the cache for problems, or if found a plan in the cache look
        // at the contributions. We'll be putting together the set of source names for which we need to
        // get the contributions.
        Set<String> sourceNames = null;
View Full Code Here

Examples of org.jboss.dna.graph.query.QueryEngine.execute()

            public QueryResults execute() {
                Batch batch = batch();
                TypeSystem typeSystem = getContext().getValueFactories().getTypeSystem();
                QueryContext context = new GraphQueryContext(schemata, typeSystem, hints, problems, variables, batch);
                QueryEngine engine = getQueryEngine();
                return engine.execute(context, query);
            }
        };
    }

    protected QueryEngine getQueryEngine() {
View Full Code Here

Examples of org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryCommand.execute()

         else
         {
            factory = selectedContainer.getProxyFactory();
         }

         retVal = query.execute(method, args, null, factory);
      }
      catch(FinderException e)
      {
         throw e;
      }
View Full Code Here

Examples of org.jboss.forge.addon.maven.projects.archetype.ArchetypeHelper.execute()

      File fileRoot = project.getRoot().reify(DirectoryResource.class).getUnderlyingResourceObject();
      ArchetypeHelper archetypeHelper = new ArchetypeHelper(artifact.getResourceInputStream(), fileRoot,
               metadataFacet.getProjectGroupName(), metadataFacet.getProjectName(), metadataFacet.getProjectVersion());
      JavaSourceFacet facet = (JavaSourceFacet) project.getFacet(JavaSourceFacet.class);
      archetypeHelper.setPackageName(facet.getBasePackage());
      archetypeHelper.execute();
      return Results.success();
   }
}
View Full Code Here

Examples of org.jboss.forge.addon.ui.UICommand.execute()

      {
         throw new IllegalStateException(errors.toString());
      }
      // All good. Hit it !
      UICommand comand = builder.getCommand();
      Result result = comand.execute(context);
      if (listener != null)
      {
         listener.commandExecuted(comand, result);
      }
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.command.UICommand.execute()

            }
            UICommand command = controller.getCommand();
            try
            {
               firePreCommandExecuted(executionContext, listeners, command);
               Result currentResult = command.execute(executionContext);
               results.add(currentResult);
               firePostCommandExecuted(executionContext, listeners, command, currentResult);
            }
            catch (Exception e)
            {
View Full Code Here

Examples of org.jboss.forge.addon.ui.controller.CommandController.execute()

      command.setValueFor("userName", "sa");
      command.setValueFor("userPassword", "");
      command.setValueFor("hibernateDialect", HibernateDialect.fromClassName("org.hibernate.dialect.H2Dialect"));
      command.setValueFor("driverLocation", resolveH2DriverJarResource());
      command.setValueFor("driverClass", "org.h2.Driver");
      command.execute();
      Map<String, ConnectionProfile> profiles = manager.loadConnectionProfiles();
      Assert.assertEquals(1, profiles.size());
      ConnectionProfile profile = profiles.get("test");
      Assert.assertNotNull(profile);
      Assert.assertEquals("org.h2.Driver", profile.getDriver());
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.