Examples of addVariable()


Examples of org.apache.oozie.util.Instrumentation.addVariable()

    @Override
    public void init(Services services) throws ServiceException {
        final Instrumentation instr = new Instrumentation();
        int interval = ConfigurationService.getInt(services.getConf(), CONF_LOGGING_INTERVAL);
        initLogging(services, instr, interval);
        instr.addVariable(JVM_INSTRUMENTATION_GROUP, "free.memory", new Instrumentation.Variable<Long>() {
            @Override
            public Long getValue() {
                return Runtime.getRuntime().freeMemory();
            }
        });
View Full Code Here

Examples of org.apache.openjpa.kernel.exps.Context.addVariable()

        String alias = q.getAlias(this);
        Value var = factory.newBoundVariable(alias, AbstractExpressionBuilder.TYPE_OBJECT);
        var.setMetaData(_entity.meta);
        Context currContext = q.ctx();
        currContext.addSchema(alias, _entity.meta);
        currContext.addVariable(alias, var);
        if (currContext.schemaAlias == null)
            currContext.schemaAlias = alias;
    }
   
    /**
 
View Full Code Here

Examples of org.apache.tools.ant.types.Environment.addVariable()

        if (port > 0) {
            Environment.Variable var = new Environment.Variable();
            var.setKey("CVS_CLIENT_PORT");
            var.setValue(String.valueOf(port));
            env.addVariable(var);
        }

        /**
         * Need a better cross platform integration with <cvspass>, so
         * use the same filename.
View Full Code Here

Examples of org.apache.uima.annotator.regex.RegexVariables.addVariable()

         VariableDocument.Variable[] varArray = variablesDoc.getVariableArray();
         if (varArray.length > 0) {
            variables = new RegexVariables_impl();
            for (int i = 0; i < varArray.length; i++) {
               String value = varArray[i].getValue().replaceAll("\\\\", "\\\\\\\\");
               variables.addVariable(varArray[i].getName(), value);
            }
         }
      }

      // ***************************************************
 
View Full Code Here

Examples of org.apache.wicket.security.log.IAuthorizationMessageSource.addVariable()

    IAuthorizationMessageSource source = getMessageSource(logMessages());
    if (source == null)
      return;
    // note that even if logErrorMessages returns false we still populate
    // the source with variables if there is a source
    source.addVariable("permission", permission);
    source.addVariable("actions", permission.getActions());
    source.addVariable("subject", subject);
    Set<Principal> principals = getHive().getPrincipals(permission);
    if (!principals.isEmpty())
      source.addVariable("principals", principals);
View Full Code Here

Examples of org.drools.decisiontable.model.Package.addVariable()

        }
        final List variableList = RuleSheetParserUtil.getVariableList( getProperties().getProperty( DefaultRuleSheetListener.VARIABLES_TAG ) ); // Set the list of variables to
        // be added to the
        // application-data tags
        for ( final Iterator it = variableList.iterator(); it.hasNext(); ) {
            ruleset.addVariable( (Global) it.next() );
        }

        final String functions = getProperties().getProperty( DefaultRuleSheetListener.FUNCTIONS_TAG );
        ruleset.addFunctions( functions );
        return ruleset;
View Full Code Here

Examples of org.drools.decisiontable.model.Ruleset.addVariable()

            ruleset.addImport( (Import) it.next( ) );
        }
        List variableList = RuleSheetParserUtil.getVariableList( getProperties( ).getProperty( VARIABLES_TAG ) ); // Set the list of variables to be added to the application-data tags
        for ( Iterator it = variableList.iterator( ); it.hasNext( ); )
        {
            ruleset.addVariable( (Variable) it.next( ) );
        }

        String functions = getProperties( ).getProperty( FUNCTIONS_TAG );
        ruleset.addFunctions( functions );
        return ruleset;
View Full Code Here

Examples of org.drools.template.model.Package.addVariable()

            ruleset.addImport( import1 );
        }

        final List<Global> variableList = RuleSheetParserUtil.getVariableList( getProperties().getProperty( VARIABLES_TAG ) );
        for ( Global global : variableList ) {
            ruleset.addVariable( global );
        }

        final List<String> functions = getProperties().getProperty( FUNCTIONS_TAG );
        if( functions != null ){
            for( String function: functions ){
View Full Code Here

Examples of org.eclipse.cdt.core.envvar.IContributedEnvironment.addVariable()

      // set warning levels default on
      IEnvironmentVariableManager envManager = CCorePlugin.getDefault().getBuildEnvironmentManager();
      IContributedEnvironment contribEnv = envManager.getContributedEnvironment();
      IEnvironmentVariable var = new EnvironmentVariable(ArduinoConst.ENV_KEY_JANTJE_WARNING_LEVEL, ArduinoConst.ENV_KEY_WARNING_LEVEL_ON);
      contribEnv.addVariable(var, cfgd.getConfiguration());

      prjDesc.setActiveConfiguration(defaultConfigDescription);
      prjDesc.setCdtProjectCreated();
      CoreModel.getDefault().getProjectDescriptionManager().setProjectDescription(project, prjDesc, true, null);
      monitor.done();
View Full Code Here

Examples of org.eclipse.core.expressions.EvaluationContext.addVariable()

    }
  }
 
  private IEvaluationContext createContext(Object selection) {
    IEvaluationContext context = new EvaluationContext(null, selection);
    context.addVariable("selection", selection); //$NON-NLS-1$
    return context;
  }
 
 
  private Expression createEnablementExpression(String delegateShortcutID) {
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.