本文整理了Java中org.apache.velocity.runtime.RuntimeSingleton.setConfiguration
方法的一些代码示例,展示了RuntimeSingleton.setConfiguration
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RuntimeSingleton.setConfiguration
方法的具体详情如下:
包路径:org.apache.velocity.runtime.RuntimeSingleton
类名称: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 );
}
内容来源于网络,如有侵权,请联系作者删除!