Examples of OperationHandler


Examples of org.jboss.as.controller.OperationHandler

                        }
                    });
                    return new BasicOperationResult();
                }
            }
            final OperationHandler operationHandler = context.getRegistry().getOperationHandler(address, operationName);
            if(operationHandler == null) {
                resultHandler.handleFailed(new ModelNode().set("no operation handler" + operationName));
                return new BasicOperationResult();
            }
            final Collection<PathAddress> resolved;
View Full Code Here

Examples of org.jboss.as.controller.OperationHandler

                            final AttributeAccess.Storage storage = access.getStorageType();
                            if(! queryRuntime && storage != AttributeAccess.Storage.CONFIGURATION) {
                                continue;
                            }
                            final AccessType type = access.getAccessType();
                            final OperationHandler handler = access.getReadHandler();
                            if(handler != null) {
                                // Create the attribute operation
                                final ModelNode attributeOperation = readOperation.clone();
                                attributeOperation.get(NAME).set(attributeName);
                                // TODO this assumes the ResultHandler is invoked synchronously
                                handler.execute(context, attributeOperation, new ResultHandler() {
                                    @Override
                                    public void handleResultFragment(final String[] location, final ModelNode attributeResult) {
                                        result.get(attributeName).set(attributeResult);
                                    }
                                    @Override
View Full Code Here

Examples of org.jclouds.azure.management.xml.OperationHandler

   public void test() {
      InputStream is = getClass().getResourceAsStream("/operation.xml");

      Operation expected = expected();

      OperationHandler handler = injector.getInstance(OperationHandler.class);
      Operation result = factory.create(handler).parse(is);

      assertEquals(result.toString(), expected.toString());

   }
View Full Code Here

Examples of org.jclouds.azure.management.xml.OperationHandler

   public void test() {
      InputStream is = getClass().getResourceAsStream("/operation.xml");

      Operation expected = expected();

      OperationHandler handler = injector.getInstance(OperationHandler.class);
      Operation result = factory.create(handler).parse(is);

      assertEquals(result.toString(), expected.toString());

   }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.where_library.view.constraints.OperationHandler

      return zoom;
    }
  }

  private void handleOperation(Context context, boolean locationSet) {
    OperationHandler handler = getOperartionHandler(context, locationSet);
    OperationContext opContext = new OperationContext(_widget, locationSet);
    handler.handleOperation(opContext);
  }
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.