Examples of decorate()


Examples of com.amazonaws.services.simpleworkflow.flow.spring.CronDecorator.decorate()

    public void startCron(final CronWorkflowOptions options) {
        long startTime = clock.currentTimeMillis();
        Date expiration = new Date(startTime + options.getContinueAsNewAfterSeconds() * SECOND);
        TimeZone tz = TimeZone.getTimeZone(options.getTimeZone());
        CronDecorator cronDecorator = new CronDecorator(options.getCronExpression(), expiration, tz, clock);
        DynamicActivitiesClient cronDecoratedActivities = cronDecorator.decorate(DynamicActivitiesClient.class, activities);
       
        cronDecoratedActivities.scheduleActivity(options.getActivity(), options.getActivityArguments(), null, Void.class);

        // Start new workflow run as soon as cron decorator exits due to expiration.
        // The call to self client indicates the desire to start the new run.
View Full Code Here

Examples of com.calclab.suco.client.ioc.decorator.Chain.decorate()

    @Test
    public void testChain() {
  final Decorator d1 = mock(Decorator.class);
  final Decorator d2 = mock(Decorator.class);
  final Chain chain = new Chain(d1, d2);
  chain.decorate(null, null);
  verify(d1).decorate((Class) anyObject(), (Provider) anyObject());
    }

    @Test
    public void testSingleton() {
View Full Code Here

Examples of com.globant.google.mendoza.command.MendozaCommandResult.decorate()

        commandResult = mendozaServer.help(request);
        httpServer.setContentType("text/html");
      }

      if (commandResult != null) {
        result = commandResult.decorate(decorator);
      }
      log.trace("Leaving receive");
      return result;
    }
View Full Code Here

Examples of com.jdkcn.myblog.util.Sorter.decorate()

  @Test
  public void testSorter() throws Exception {
    Sorter sorter = new Sorter().desc("name").asc("property").desc("createDate");
    String hql = "from Entry entry";
    String orderedHql = "from Entry entry order by name desc,property asc,createDate desc";
    assertEquals(sorter.decorate(hql), orderedHql);
  }
 
  @Test
  public void testSorterWithExistOrderBy() throws Exception {
    Sorter sorter = new Sorter().desc("name").asc("property").desc("createDate");
View Full Code Here

Examples of com.jdkcn.myblog.util.Sorter.decorate()

  @Test
  public void testSorterWithExistOrderBy() throws Exception {
    Sorter sorter = new Sorter().desc("name").asc("property").desc("createDate");
    String hql = "from Entry entry order by entry.title desc";
    String orderedHql = "from Entry entry order by entry.title desc,name desc,property asc,createDate desc";
    assertEquals(sorter.decorate(hql), orderedHql);
  }
}
View Full Code Here

Examples of diva.canvas.FigureContainer.decorate()

                                .getParent();

                        if (parent != null) {
                            FigureDecorator d = _prototypeDecorator
                                    .newInstance(figure);
                            parent.decorate(figure, d);
                            _decorators.put(figure, d);
                        }
                    }
                }
            }
View Full Code Here

Examples of diva.canvas.FigureContainer.decorate()

        } else {
            FigureContainer parent = (FigureContainer) figure.getParent();

            if (parent != null) {
                FigureDecorator d = _prototypeDecorator.newInstance(figure);
                parent.decorate(figure, d);
                _decorators.put(figure, d);
            }
        }
    }
View Full Code Here

Examples of it.eng.spagobi.tools.dataset.common.decorator.DisplaySizeDecorator.decorate()

   
    try {
      templateStr = getTemplateFileContent();
     
      IDataStoreDecorator dataStoreDecorator = new DisplaySizeDecorator();
      dataStoreDecorator.decorate(dataStore);
     
     
     
      if(getParamValue("pagination", "false").equalsIgnoreCase("true")) {
        templateStr = replaceParam(templateStr, "pagination", "isIgnorePagination=\"true\"");
View Full Code Here

Examples of it.eng.spagobi.tools.dataset.common.decorator.IDataStoreDecorator.decorate()

   
    try {
      templateStr = getTemplateFileContent();
     
      IDataStoreDecorator dataStoreDecorator = new DisplaySizeDecorator();
      dataStoreDecorator.decorate(dataStore);
     
     
     
      if(getParamValue("pagination", "false").equalsIgnoreCase("true")) {
        templateStr = replaceParam(templateStr, "pagination", "isIgnorePagination=\"true\"");
View Full Code Here

Examples of it.eng.spagobi.tools.dataset.common.decorator.IDataStoreDecorator.decorate()

      templateStr = getTemplateFileContent();
      logger.debug("Base template: " + templateStr);
      Assert.assertNotNull(templateStr, "base template cannot be null");
     
      dataStoreDecorator = new DisplaySizeDecorator();
      dataStoreDecorator.decorate(dataStore);
           
      if(getParamValue("pagination", "false").equalsIgnoreCase("true")) {
        templateStr = replaceParam(templateStr, "pagination", "isIgnorePagination=\"true\"");
      } else {
        templateStr = replaceParam(templateStr, "pagination", "");
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.