Examples of execute()


Examples of org.jboss.arquillian.spi.TestRunner.execute()

         ClassLoader oldThreadContextCL = SecurityActions.getThreadContextClassLoader();
         try
         {
            DynamicServiceLoader.setClassLoaderAssociation(serviceClassLoader);
            SecurityActions.setThreadContextClassLoader(SecurityActions.getClassLoader(testClass));
            TestResult testResult = runner.execute(testClass, methodName);
            return testResult;
         }
         finally
         {
            SecurityActions.setThreadContextClassLoader(oldThreadContextCL);
View Full Code Here

Examples of org.jboss.as.cli.impl.CLIModelControllerClient.execute()


        final ModelNode op = this.buildRequestWithoutHeaders(ctx);
        final ModelNode response;
        try {
            response = cliClient.execute(op, true);
        } catch(IOException e) {
            ctx.disconnectController();
            throw new CommandLineException("Failed to execute :reload", e);
        }
View Full Code Here

Examples of org.jboss.as.cmp.jdbc.JDBCQueryCommand.execute()

                public Object getEntityObject(Object primaryKey) {
                    return queryMetaData.isResultTypeMappingLocal() && selectedComponent.getLocalHomeClass() != null ?
                            selectedComponent.getEJBLocalObject(primaryKey) : selectedComponent.getEJBObject(primaryKey);
                }
            };
            retVal = query.execute(method, args, null, factory);
        } catch (FinderException e) {
            throw e;
        } catch (EJBException e) {
            throw e;
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.as.console.client.administration.role.operation.ModifyRoleAssignmentOp.execute()

    }

    public void addRoleAssignment(final RoleAssignment assignment) {
        closeWindow();
        ManagementOperation<Stack<Boolean>> mo = new ModifyRoleAssignmentOp(dispatcher, assignment, ADD);
        mo.execute(new Outcome<Stack<Boolean>>() {
            @Override
            public void onFailure(final Stack<Boolean> context) {
                Console.error(Console.MESSAGES.addingFailed("role assignment"));
                loadAssignments();
            }
View Full Code Here

Examples of org.jboss.as.console.client.administration.role.operation.ModifyRoleOp.execute()

    public void addScopedRole(final Role role) {
        if (!assertDomainMode()) { return; }

        closeWindow();
        ManagementOperation<Stack<Boolean>> mo = new ModifyRoleOp(dispatcher, role, role, ADD);
        mo.execute(new Outcome<Stack<Boolean>>() {
            @Override
            public void onFailure(final Stack<Boolean> context) {
                Console.error(Console.MESSAGES.addingFailed(role.getName()));
                loadAssignments();
            }
View Full Code Here

Examples of org.jboss.as.console.client.administration.role.operation.ShowMembersOperation.execute()

        if (role == null) {
            return;
        }

        ManagementOperation<RoleAssignment.Internal> mo = new ShowMembersOperation(dispatcher, role, principals);
        mo.execute(new Outcome<RoleAssignment.Internal>() {
            @Override
            public void onFailure(final RoleAssignment.Internal internal) {
                show(internal);
            }
View Full Code Here

Examples of org.jboss.as.console.client.core.BootstrapCmd.execute()

        });
    }

    private void bootstrap() {
        BootstrapCmd cmd = new BootstrapCmd(MODULES.getBootstrapContext(), MODULES.getDispatchAsync());
        cmd.execute(new AsyncCallback<Boolean>() {
            @Override
            public void onFailure(Throwable caught) {
                Log.error("Bootstrap failed: " + caught.getMessage());
            }
View Full Code Here

Examples of org.jboss.as.console.client.core.bootstrap.BootstrapProcess.execute()

                bootstrap.addHook(new LoadMainApp(MODULES.getBootstrapContext(), MODULES.getPlaceManager(), MODULES.getTokenFormatter()));

                // viz can be loaded in background ...
                //bootstrap.addHook(new LoadGoogleViz());

                bootstrap.execute(new AsyncCallback<Boolean>() {
                    @Override
                    public void onFailure(Throwable caught) {
                        error("Bootstrap failed", caught.getMessage());
                    }
View Full Code Here

Examples of org.jboss.as.console.client.shared.dispatch.AsyncCommand.execute()

            final AsyncCommand nextHook = hooks.get(index);
            index++;

            Window.setStatus(index + ": " + nextHook.getClass().getName());

            nextHook.execute(new AsyncCallback<Boolean>() {
                @Override
                public void onFailure(Throwable caught) {
                    Console.error("Bootstrap failed", caught.getMessage());
                }
View Full Code Here

Examples of org.jboss.as.console.client.shared.general.model.LoadInterfacesCmd.execute()

        ModelNode address = new ModelNode();
        address.add("host", currentHost.getName());

        LoadInterfacesCmd loadInterfacesCmd = new LoadInterfacesCmd(dispatcher, address, metaData);

        loadInterfacesCmd.execute(new SimpleCallback<List<Interface>>() {
            @Override
            public void onSuccess(List<Interface> result) {
                getView().setInterfaces(result);
            }
        });
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.