Examples of Action


Examples of com.googlecode.wicketwebbeans.annotations.Action

        collectFromBeanProps();
        collectBeansAnnotation(beansMetaData, false);

        // Process action annotations on component.
        for (Method method : getActionMethods(component.getClass())) {
            Action action = method.getAnnotation(Action.class);
            processActionAnnotation(action, method.getName());
        }

        // Determine the hierarchy of Bean contexts. I.e., the default Bean is always processed first, followed by those that
        // extend it, etc. This acts as a stack.
View Full Code Here

Examples of com.habitsoft.kiyaa.metamodel.Action

          action.perform(AsyncCallbackFactory.<Void>defaultNewInstance());
        }
      });
      if(test != null) {
        if(actionTests == null) actionTests = new ActionSeries();
        actionTests.add(new Action() {
          @Override
          public void perform(AsyncCallback<Void> callback) {
            test.getValue(new AsyncCallbackProxy<Boolean,Void>(callback) {
              @Override
              public void onSuccess(Boolean result) {
View Full Code Here

Examples of com.intellij.struts2.dom.struts.action.Action

  private static void registerDocumentationProviders() {
    ElementPresentationManager.registerDocumentationProvider(new NullableFunction<Object, String>() {
      public String fun(final Object o) {
        if (o instanceof Action) {
          final Action action = (Action) o;
          final StrutsPackage strutsPackage = action.getStrutsPackage();

          final DocumentationBuilder builder = new DocumentationBuilder();
          final PsiClass actionClass = action.searchActionClass();
          builder.addLine("Action", action.getName().getStringValue())
                 .addLine("Class", actionClass != null ? actionClass.getQualifiedName() : null)
                 .addLine("Method", action.getMethod().getStringValue())
                 .addLine("Package", strutsPackage.getName().getStringValue())
                 .addLine("Namespace", strutsPackage.searchNamespace());

          return builder.getText();
        }
View Full Code Here

Examples of com.khs.sherpa.annotation.Action

    }
    return method;
  }
 
  public static String getMethodName(Method method) {
    Action action = MethodUtil.getActionAnnotation(method);
    if(action != null) {
      if(action.value().trim().length() > 0) {
        return action.value().trim();
      }
    }
   
    return method.getName();
  }
View Full Code Here

Examples of com.liferay.portal.struts.Action

public class WorkflowMessagePortlet extends JSPPortlet {
  public void doView(RenderRequest req, RenderResponse res)
    throws IOException, PortletException {

    try {
      Action a =
        (Action) InstancePool.get(
          "com.dotmarketing.portlets.workflowmessages.c.a.ViewWorkflowMessagesPortletAction");
      a.run(req, res);
    }
    catch (ActionException ae) {
      throw new PortletException(ae);
    }
View Full Code Here

Examples of com.linkedin.restli.server.annotations.Action

   * @param method provides the method to add to the model.
   * @throws ResourceConfigException on validation errors.
   */
  private static void addActionResourceMethod(final ResourceModel model, final Method method)
  {
    Action actionAnno = method.getAnnotation(Action.class);
    if (actionAnno == null)
    {
      return;
    }

    String actionName = actionAnno.name();
    List<Parameter<?>> parameters = getParameters(model, method, ResourceMethod.ACTION);

    Class<?> returnClass = getActionReturnClass(model, method, actionAnno, actionName);
    TyperefDataSchema returnTyperefSchema = getActionTyperefDataSchema(model, actionAnno, actionName);
    validateActionReturnType(model, method, returnClass, returnTyperefSchema);

    if (!Modifier.isPublic(method.getModifiers()))
    {
      throw new ResourceConfigException(String.format("Resource '%s' contains non-public action method '%s'.",
                                                      model.getName(),
                                                      method.getName()));
    }

    RecordDataSchema recordDataSchema = DynamicRecordMetadata.buildSchema(method.getName(),
                                                                          parameters);

    RecordDataSchema actionReturnRecordDataSchema;
    FieldDef<?> returnFieldDef;
    if(returnClass != Void.TYPE)
    {
      @SuppressWarnings({"unchecked", "rawtypes"})
      FieldDef<?> nonVoidFieldDef = new FieldDef(ActionResponse.VALUE_NAME, returnClass, getDataSchema(returnClass, returnTyperefSchema));
      returnFieldDef = nonVoidFieldDef;
      actionReturnRecordDataSchema = DynamicRecordMetadata.buildSchema(ActionResponse.class.getName(), Collections.singleton((returnFieldDef)));
    }
    else
    {
      returnFieldDef = null;
      actionReturnRecordDataSchema = DynamicRecordMetadata.buildSchema(ActionResponse.class.getName(), Collections.<FieldDef<?>>emptyList());
    }

    if (model.getResourceLevel() == ResourceLevel.ENTITY && actionAnno.resourceLevel() == ResourceLevel.COLLECTION)
    {
      throw new ResourceConfigException(
          String.format("Resource '%s' is a simple resource, it cannot contain actions at resource level \"COLLECTION\".",
            model.getName()));
    }
View Full Code Here

Examples of com.melitronic.domain.entity.Action

        newParent.getItems().add(item);
        item.setNextId(null);
      persist(item, em, context);
     
      if (!alreadyCommitted) {
        Action action = new Action();
        action.setActionType(ActionType.COMMITED);
        action.setItem(item);
        persist(action, em, context);
      }
     
      if (entity != null) {
        entity.setNextId(item.getId());
View Full Code Here

Examples of com.melitronic.rmapp.model.Action

          ((ProductDevelopmentUseCase)getUseCase()).getSelectedIssuesActions();
   
    AbstractItemCollection resp = new AbstractItemCollection();
   
    for (com.melitronic.domain.entity.Action a : coll) {
      resp.add(new Action(a));
    }
   
    return resp;
  }
View Full Code Here

Examples of com.netflix.eureka.PeerAwareInstanceRegistry.Action

                    list.addReplicationInstance(instance);
                }
                if (list.getList().size() == 0) {
                    return true;
                }
                Action action = list.getList().get(0).action;
                DynamicCounter.increment("Batch_"
                        + action

                        + "_tries");
View Full Code Here

Examples of com.opengamma.engine.function.resolver.SimpleResolutionRuleTransform.Action

  public MutableFudgeMsg buildMessage(final FudgeSerializer serializer, final SimpleResolutionRuleTransform object) {
    final MutableFudgeMsg message = serializer.newMessage();
    message.add(0, SimpleResolutionRuleTransform.class.getName());
    for (Map.Entry<String, Action> functionTransformation : object.getFunctionTransformations().entrySet()) {
      final String functionName = functionTransformation.getKey();
      final Action action = functionTransformation.getValue();
      if (action instanceof DontUse) {
        message.add(functionName, IndicatorType.INSTANCE);
      } else if (action instanceof Adjust) {
        message.add(functionName, adjustToFudgeMsg(serializer, (Adjust) action));
      } else if (action instanceof MultipleAdjust) {
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.