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

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

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

RuntimeSingleton.setConfiguration介绍

[英]Allow an external system to set an ExtendedProperties object to use. This is useful where the external system also uses the ExtendedProperties class and the velocity configuration is a subset of parent application's configuration. This is the case with Turbine.
[中]允许外部系统设置要使用的ExtendedProperties对象。当外部系统也使用ExtendedProperties类,并且velocity配置是父应用程序配置的子集时,这非常有用。涡轮机就是这样。

代码示例

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

/**
 * Set an entire configuration at once. This is
 * useful in cases where the parent application uses
 * the ExtendedProperties class and the velocity configuration
 * is a subset of the parent application's configuration.
 *
 * @param ExtendedProperties configuration
 *
 */
public static void setExtendedProperties( ExtendedProperties configuration)
{
  RuntimeSingleton.setConfiguration( configuration );
}

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

/**
 * Set an entire configuration at once. This is
 * useful in cases where the parent application uses
 * the ExtendedProperties class and the velocity configuration
 * is a subset of the parent application's configuration.
 *
 * @param configuration A configuration object.
 *
 */
public static void setExtendedProperties( ExtendedProperties configuration)
{
  RuntimeSingleton.setConfiguration( configuration );
}

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

/**
 * Allow an external system to set an ExtendedProperties
 * object to use. This is useful where the external
 * system also uses the ExtendedProperties class and
 * the velocity configuration is a subset of
 * parent application's configuration. This is
 * the case with Turbine.
 *
 * @param configuration A configuration object.
 */
public static void setConfiguration( ExtendedProperties configuration)
{
  RuntimeSingleton.setConfiguration( configuration );
}

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

/**
 * Set an entire configuration at once. This is
 * useful in cases where the parent application uses
 * the ExtendedProperties class and the velocity configuration
 * is a subset of the parent application's configuration.
 *
 * @param configuration A configuration object.
 *
 */
public static void setExtendedProperties( ExtendedProperties configuration)
{
  RuntimeSingleton.setConfiguration( configuration );
}

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

/**
 * Allow an external system to set an ExtendedProperties
 * object to use. This is useful where the external
 * system also uses the ExtendedProperties class and
 * the velocity configuration is a subset of
 * parent application's configuration. This is
 * the case with Turbine.
 *
 * @param ExtendedProperties configuration
 */
public static void setConfiguration( ExtendedProperties configuration)
{
  RuntimeSingleton.setConfiguration( configuration );
}

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

/**
 * Allow an external system to set an ExtendedProperties
 * object to use. This is useful where the external
 * system also uses the ExtendedProperties class and
 * the velocity configuration is a subset of
 * parent application's configuration. This is
 * the case with Turbine.
 *
 * @param configuration A configuration object.
 */
public static void setConfiguration( ExtendedProperties configuration)
{
  RuntimeSingleton.setConfiguration( configuration );
}

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

/**
 * Set an entire configuration at once. This is
 * useful in cases where the parent application uses
 * the Configuration class and the velocity configuration
 * is a subset of the parent application's configuration.
 *
 * @param Configuration configuration
 *
 * @deprecated Use
 *  {@link #setExtendedProperties( ExtendedProperties  ) }
 */
public static void setConfiguration(Configuration configuration)
{
  /*
   *  Yuk. We added a little helper to Configuration to
   *  help with deprecation.  The Configuration class
   *  contains a 'shadow' ExtendedProperties
   */
  ExtendedProperties ep = configuration.getExtendedProperties();
  RuntimeSingleton.setConfiguration( ep );
}

相关文章