Examples of apply()


Examples of org.gradle.configuration.ScriptPlugin.apply()

    private void applySettingsScript(SettingsLocation settingsLocation, ClassLoader buildSourceClassLoader, SettingsInternal settings) {
        ScriptPlugin configurer = configurerFactory.create(settingsLocation.getSettingsScriptSource());
        configurer.setClassLoader(buildSourceClassLoader);
        configurer.setScriptBaseClass(SettingsScript.class);
        configurer.apply(settings);
    }
}
View Full Code Here

Examples of org.grouplens.lenskit.transform.normalize.VectorTransformation.apply()

            history = History.forUser(user);
        }
        SparseVector summary = summarizer.summarize(history);
        VectorTransformation transform = normalizer.makeTransformation(user, summary);
        MutableSparseVector normed = summary.mutableCopy();
        transform.apply(normed);

        scores.clear();
        algorithm.scoreItems(model, normed, scores, scorer);

        // untransform the scores
View Full Code Here

Examples of org.hornetq.core.filter.impl.Operator.apply()

   {
      // Neg Long
      FilterParserTest.log.trace("parse(-12345 = -1 * 12345)");
      Operator result = (Operator)parser.parse(new SimpleString("-12345 = -1 * 12345"), identifierMap);
      FilterParserTest.log.trace("result -> " + result);
      Boolean b = (Boolean)result.apply();
      Assert.assertTrue("is true", b.booleanValue());

      // Neg Double
      FilterParserTest.log.trace("parse(-1 * 12345.67 = -12345.67)");
      result = (Operator)parser.parse(new SimpleString("-1 * 12345.67 = -12345.67"), identifierMap);
View Full Code Here

Examples of org.infinispan.schematic.document.Editor.apply()

            logger.debug("Applying changes to '{0}' repository configuration: {1} --> {2}", repositoryName, changes, config);
            // Get the configuration and apply the same changes ...
            final RepositoryConfiguration oldConfiguration = this.config.get();
            Editor copy = oldConfiguration.edit();
            ConfigurationChange configChanges = new ConfigurationChange();
            copy.apply(changes, configChanges);

            // Always update the configuration ...
            RunningState oldState = this.runningState.get();
            this.config.set(new RepositoryConfiguration(copy.unwrap(), copy.getString(FieldName.NAME),
                                                        oldConfiguration.environment()));
View Full Code Here

Examples of org.jbehave.core.story.codegen.sablecc.node.Start.apply()

    try {
      Lexer lexer = new Lexer(new PushbackReader(in, 1024));
      Parser parser = new Parser(lexer);
      Start root = parser.parse();
      StoryDetailsBuilder builder = new StoryDetailsBuilder();
      root.apply(builder);
      return builder.getStoryDetails();
    } catch (IOException e) {
      throw new RuntimeException(e.getMessage());
    } catch (LexerException e) {
      throw new RuntimeException(e.getMessage());
View Full Code Here

Examples of org.jboss.dashboard.domain.DomainConfiguration.apply()

        if (groupByPropId != null && !groupByPropId.equals("-1") && showGroupByConfig) {
            // Capture the group by domain configuration.
            DomainConfiguration config = new DomainConfiguration();
            DomainConfigurationParser parser = new DomainConfigurationParser(config);
            parser.parse(request);
            config.apply(dataSetTable.getGroupByProperty());
            dataSetTable.setGroupByShowTotals(Boolean.valueOf(request.getRequestObject().getParameter("groupbyshowtotals")).booleanValue());
            dataSetTable.setGroupByTotalsHtmlStyle(request.getRequestObject().getParameter("groupbytotalshtmlstyle"));           

            // Get for the selected non-group by column the scalar function to apply.
            if (dataSetTable.getNonGroupByColumnIndexes().length > 0) {
View Full Code Here

Examples of org.jboss.dashboard.domain.RangeConfiguration.apply()

            // TODO: Also save if the enter key has been pressed.
            if (updateRangeDetails) {
                RangeConfiguration rangeConfig = displayer.getRangeConfiguration();
                RangeConfigurationParser parser = new RangeConfigurationParser(rangeConfig);
                parser.parse(request);
                rangeConfig.apply(displayer.getRangeProperty());
                displayer.setRangeScalarFunction(DataDisplayerServices.lookup().getScalarFunctionManager().getScalarFunctionByCode(rangeConfig.getScalarFunctionCode()));
                displayer.setUnitI18nMap(rangeConfig.getUnitI18nMap());
            }
        }
View Full Code Here

Examples of org.jboss.errai.otec.client.mutation.Mutation.apply()

              final LogQuery effectiveStateForRevision = transactionLog.getEffectiveStateForRevision(localOp.getRevision());
              final State rewind = effectiveStateForRevision.getEffectiveState();
              localOp.removeFromCanonHistory();
              transactionLog.markDirty();
              final Mutation mutation = lm.newBasedOn(rm.getPosition());
              mutation.apply(rewind);

              final OTOperation localOnlyOperation
                  = createLocalOnlyOperation(engine, remoteOp.getAgentId(), singletonList(mutation), entity, localOp.getRevision(), OpPair.of(remoteOp, localOp));
              transactionLog.insertLog(localOp.getRevision(), localOnlyOperation);
View Full Code Here

Examples of org.jboss.errai.otec.client.operation.OTOperation.apply()

            appliedRemoteOp = true;
          }

          applyOver = transform(applyOver, ot);

          ot.apply(entity, !changedLocally);

          if (changedLocally) {
            localOp.removeFromCanonHistory();
            localOp.setOuterPath(ot);
          }
View Full Code Here

Examples of org.jboss.errai.reflections.util.SimplePackageFilter.apply()

    final Set<Class<?>> groups = extractValidationGroups(validationConfig);
   
    final Set<Class<?>> filteredBeans = new HashSet<Class<?>>();
    SimplePackageFilter filter = new SimplePackageFilter(PropertiesUtil.getPropertyValues(BLACKLIST_PROPERTY, " "));
    for (Class<?> bean : beans) {
      if (!filter.apply(bean.getName())) {
        filteredBeans.add(bean);
      }
    }
   
    if (filteredBeans.isEmpty() || groups.isEmpty()) {
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.