Examples of action()


Examples of aQute.bnd.build.Project.action()

        try {
            Project project = Workspace.getProject(basedir);
            project.setProperty("in.ant", "true");
            project.setProperty("environment", "ant");
            project.setExceptions(true);
            project.action(command);
           
            if ( report(project) )
                throw new BuildException("Command " + command + " failed");
        } catch (Throwable e) {
            if ( exceptions)
View Full Code Here

Examples of cn.com.annotations.Form.action()

            ContainHTMLElementTag topElement = null;
            if ((form != null && !(parser.getGroup() instanceof Group.DEFAULT) && !form.id().equals(Form.__DEFAULT_FORM_NAME)) || parser.getGroup() instanceof Group.DEFAULT) {

                // 生成form标签
                FormElementTag formElement = new FormElementTag();
                formElement.setAction(form.action());
                formElement.setEnctype(form.enctype());
                formElement.setMethod(form.method().name());
                formElement.setId(form.id());
                formElement.setCssClass(form.cssClass());
                topElement = formElement;
View Full Code Here

Examples of cn.shenyanchao.ut.command.invoker.CommandInvoker.action()

        CompilationUnitBuilder compilationUnitBuilder = null;
        String testJavaFileName = JavaParserUtils.findTestJavaFileName(sourceCU, javaFile, testDir);
        boolean testExist = FileChecker.isTestJavaClassExist(new File(testJavaFileName));
        if (!testExist) {
            CommandInvoker invoker = new CommandInvoker(new NewTestCommand(new NewTestReceiver(sourceCU, javaFile)));
            compilationUnitBuilder = invoker.action();
        } else if (testExist) {
            CompilationUnit testCU = JavaParserFactory.getCompilationUnit(new File(testJavaFileName), sourceEncode);
            CommandInvoker invoker = new CommandInvoker(new ExistTestCommand(new ExistTestReceiver(sourceCU, javaFile,
                    testCU)));
            compilationUnitBuilder = invoker.action();
View Full Code Here

Examples of com.alibaba.cobar.client.router.rules.ibatis.IBatisNamespaceRule.action()

@Test
public class IBatisNamespaceRuleTest{
    public void testNamespaceRuleNormally() {
        IBatisNamespaceRule rule = new IBatisNamespaceRule("com.alibaba.cobar.client.entity.Tweet",
                "p1, p2");
        List<String> shardIds = rule.action();
        assertNotNull(shardIds);
        assertEquals(2, shardIds.size());

        IBatisRoutingFact fact = new IBatisRoutingFact(
                "com.alibaba.cobar.client.entity.Tweet.update", null);
View Full Code Here

Examples of com.erudika.para.annotations.Cached.action()

        default:
          break;
      }
    }
    if (cachedAnno != null) {
      switch (cachedAnno.action()) {
        case GET:
          String getMeId = (String) args[1];
          if (cache.contains(appid, getMeId)) {
            result = cache.get(appid, getMeId);
            logger.debug("{}: Cache hit: {}->{}", cn, appid, getMeId);
View Full Code Here

Examples of com.erudika.para.annotations.Indexed.action()

    Object[] args = mi.getArguments();
    String appid = AOPUtils.getFirstArgOfString(args);

    if (indexedAnno != null) {
      switch (indexedAnno.action()) {
        case ADD:
          ParaObject addMe = AOPUtils.getArgOfParaObject(args);
          if (Utils.isValidObject(addMe)) {
            result = mi.proceed();
            search.index(appid, addMe);
View Full Code Here

Examples of com.fray.evo.util.EcYabotEncoder.action()

          {
            //get the appropriate YABOT action class
            EcYabotEncoder.Action yabotAction = yabotMapping.get(a.getClass());
            if (yabotAction != null)
            {
              encoder.action(yabotAction);
            }
            else
            {
              warnings.add("YABOT action not found for '" + a.getClass().getName() + "'.");
            }
View Full Code Here

Examples of com.itstherules.mediacentre.controller.MediaCentreController.action()

        Map<String, Object> parameters = new MapMapConverter().convert(request.getParameterMap());
        Map<String, Object> parsed = new PathParser().parse(request.getRequestURI(), parameters);
        decorate(parsed);
        Controllers controllers = Controllers.valueOf((String) parsed.get(PathPart.CONTROLLER.name()));
      MediaCentreController controller = controllers.getController(new TemplateEngine(getServletContext()));
        controller.action((String) parsed.get(PathPart.ACTION.name()), parsed, response);
    } catch(IllegalArgumentException e){
      throw new ServletException(e);
    }
  }
View Full Code Here

Examples of com.linkedin.restli.docgen.examplegen.ExampleRequestResponseGenerator.action()

      {
        ActionSchema actionMethodSchema = (ActionSchema)methodSchema;
        final ResourceLevel resourceLevel = (visitor.getCollectionActions().contains(methodSchema) ?
                                             ResourceLevel.COLLECTION :
                                             ResourceLevel.ENTITY);
        capture = generator.action(actionMethodSchema.getName(), resourceLevel);
      }
      else
      {
        capture = null;
      }
View Full Code Here

Examples of com.softwarementors.extjs.djn.config.annotations.DirectAction.action()

    assert actionClass != null;
   
    DirectAction actionAnnotation = actionClass.getAnnotation(DirectAction.class);
    List<String> actionNames = new ArrayList<String>();
    if( actionAnnotation != null ) {
      Collections.addAll( actionNames, actionAnnotation.action() );
    }
   
    if( actionNames.isEmpty()) {
      actionNames.add( ClassUtils.getSimpleName(actionClass) );
    }
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.