org.apache.velocity.runtime.RuntimeSingleton.addProperty()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(85)

本文整理了Java中org.apache.velocity.runtime.RuntimeSingleton.addProperty方法的一些代码示例,展示了RuntimeSingleton.addProperty的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RuntimeSingleton.addProperty方法的具体详情如下:
包路径:org.apache.velocity.runtime.RuntimeSingleton
类名称:RuntimeSingleton
方法名:addProperty

RuntimeSingleton.addProperty介绍

[英]Add a property to the configuration. If it already exists then the value stated here will be added to the configuration entry. For example, if resource.loader = file is already present in the configuration and you addProperty("resource.loader", "classpath") Then you will end up with a Vector like the following: ["file", "classpath"]
[中]向配置中添加属性。如果已经存在,则此处所述的值将添加到配置条目中。例如,如果是资源。loader=文件已经存在于配置中,您添加属性(“resource.loader”,“classpath”),然后您将得到如下向量:[“file”,“classpath”]

代码示例

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 * Add a Velocity Runtime property.
 *
 * @param key The property key.
 * @param value The property value.
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty(key,value);
}

代码示例来源:origin: org.apache.velocity/com.springsource.org.apache.velocity

/**
 * Add a Velocity Runtime property.
 *
 * @param key The property key.
 * @param value The property value.
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty(key,value);
}

代码示例来源:origin: org.apache.velocity/velocity-engine-core

/**
 * Add a Velocity Runtime property.
 *
 * @param key The property key.
 * @param value The property value.
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty(key, value);
}

代码示例来源:origin: velocity/velocity-dep

/**
 * Add a Velocity Runtime property.
 *
 * @param String key
 * @param Object value
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty(key,value);
}

代码示例来源:origin: velocity/velocity-dep

/**
 * Add a property to the configuration. If it already
 * exists then the value stated here will be added
 * to the configuration entry. For example, if
 *
 * resource.loader = file
 *
 * is already present in the configuration and you
 *
 * addProperty("resource.loader", "classpath")
 *
 * Then you will end up with a Vector like the
 * following:
 *
 * ["file", "classpath"]
 *
 * @param String key
 * @param String value
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty( key, value );
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 * Add a property to the configuration. If it already
 * exists then the value stated here will be added
 * to the configuration entry. For example, if
 *
 * resource.loader = file
 *
 * is already present in the configuration and you
 *
 * addProperty("resource.loader", "classpath")
 *
 * Then you will end up with a Vector like the
 * following:
 *
 * ["file", "classpath"]
 *
 * @param key A property key.
 * @param value The property value.
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty( key, value );
}

代码示例来源:origin: org.apache.velocity/com.springsource.org.apache.velocity

/**
 * Add a property to the configuration. If it already
 * exists then the value stated here will be added
 * to the configuration entry. For example, if
 *
 * resource.loader = file
 *
 * is already present in the configuration and you
 *
 * addProperty("resource.loader", "classpath")
 *
 * Then you will end up with a Vector like the
 * following:
 *
 * ["file", "classpath"]
 *
 * @param key A property key.
 * @param value The property value.
 */
public static void addProperty(String key, Object value)
{
  RuntimeSingleton.addProperty( key, value );
}

相关文章