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

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

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

RuntimeSingleton.init介绍

[英]This is the primary initialization method in the Velocity Runtime. The systems that are setup/initialized here are as follows:

  • Logging System
  • ResourceManager
  • Event Handlers
  • Parser Pool
  • Global Cache
  • Static Content Include System
  • Velocimacro System
    [中]这是Velocity运行时中的主要初始化方法。此处设置/初始化的系统如下:
    *测井系统
    *资源经理
    *事件处理程序
    *解析器池
    *全局缓存
    *静态内容包括系统
    *Velocimacro系统

代码示例

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

/**
 * Initialize the Velocity Runtime with a Properties
 * object.
 *
 * @param Properties
 */
public static void init(Properties p) throws Exception
{
  RuntimeSingleton.init(p);
}

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

/**
 * Initialize the Velocity Runtime with the name of
 * ExtendedProperties object.
 *
 * @param configurationFile The name of a properties file.
 * @throws Exception When a problem occurs during init.
 */
public static void init(String configurationFile)
  throws Exception
{
  RuntimeSingleton.init( configurationFile );
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the passed in java.util.Properties object
 *
 *  @param p  Properties object containing initialization properties
 */
public static void init( Properties p )
{
  RuntimeSingleton.init( p );
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the passed in java.util.Properties object
 *
 *  @param p  Properties object containing initialization properties
 */
public static void init( Properties p )
{
  RuntimeSingleton.init( p );
}

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

/**
 *  initialize the Velocity runtime engine, using the default
 *  properties of the Velocity distribution
 *
 * @throws Exception When an error during initialization occurs.
 */
public static void init()
  throws Exception
{
  RuntimeSingleton.init();
}

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

/**
 * Initialize the Velocity Runtime with the name of
 * ExtendedProperties object.
 *
 * @param configurationFile The name of a properties file.
 * @throws Exception When a problem occurs during init.
 */
public static void init(String configurationFile)
  throws Exception
{
  RuntimeSingleton.init( configurationFile );
}

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

public synchronized static void init()
  throws Exception
{
  RuntimeSingleton.init();
}

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

/**
 *  initialize the Velocity runtime engine, using the default
 *  properties of the Velocity distribution
 */
public static void init()
{
  RuntimeSingleton.init();
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the properties file passed in as the arg
 *
 *  @param propsFilename file containing properties to use to initialize
 *         the Velocity runtime
 */
public static void init( String propsFilename )
{
  RuntimeSingleton.init(propsFilename);
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the properties file passed in as the arg
 *
 *  @param propsFilename file containing properties to use to initialize
 *         the Velocity runtime
 */
public static void init( String propsFilename )
  throws Exception
{
  RuntimeSingleton.init(propsFilename);
}

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

/**
 * Initialize the Velocity Runtime with a Properties
 * object.
 *
 * @param p The properties used for initializiation.
 * @throws Exception When a problem occurs during init.
 */
public static void init(Properties p) throws Exception
{
  RuntimeSingleton.init(p);
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the properties file passed in as the arg
 *
 *  @param propsFilename file containing properties to use to initialize
 *         the Velocity runtime
 */
public static void init( String propsFilename )
{
  RuntimeSingleton.init(propsFilename);
}

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

/**
 *  initialize the Velocity runtime engine, using the default
 *  properties of the Velocity distribution
 */
public static void init()
{
  RuntimeSingleton.init();
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the properties file passed in as the arg
 *
 *  @param propsFilename file containing properties to use to initialize
 *         the Velocity runtime
 * @throws Exception When an error during initialization occurs.
 */
public static void init( String propsFilename )
  throws Exception
{
  RuntimeSingleton.init(propsFilename);
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the passed in java.util.Properties object
 *
 *  @param p  Properties object containing initialization properties
 * @throws Exception When an error during initialization occurs.
 *
 */
public static void init( Properties p )
  throws Exception
{
  RuntimeSingleton.init( p );
}

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

/**
 *  initialize the Velocity runtime engine, using the default
 *  properties of the Velocity distribution
 */
public static void init()
  throws Exception
{
  RuntimeSingleton.init();
}

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

/**
 *  initialize the Velocity runtime engine, using default properties
 *  plus the properties in the passed in java.util.Properties object
 *
 *  @param p  Proprties object containing initialization properties
 *
 */
public static void init( Properties p )
  throws Exception
{
  RuntimeSingleton.init( p );
}

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

/**
 * Initialize the Velocity Runtime with the name of
 * ExtendedProperties object.
 *
 * @param Properties
 */
public static void init(String configurationFile)
  throws Exception
{
  RuntimeSingleton.init( configurationFile );
}

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

/**
 * Initialize the Velocity Runtime with a Properties
 * object.
 *
 * @param p The properties used for initializiation.
 * @throws Exception When a problem occurs during init.
 */
public static void init(Properties p) throws Exception
{
  RuntimeSingleton.init(p);
}

代码示例来源:origin: apache/roller

/**
 * Initialize the Velocity rendering engine.
 */
private void setupVelocity() throws WebloggerException {
  log.info("Initializing Velocity");
  // initialize the Velocity engine
  Properties velocityProps = new Properties();
  try {
    InputStream instream = servletContext.getResourceAsStream("/WEB-INF/velocity.properties");
    velocityProps.load(instream);
    log.debug("Velocity props = " + velocityProps);
    // init velocity
    RuntimeSingleton.init(velocityProps);
  } catch (Exception e) {
    throw new WebloggerException(e);
  }
}

相关文章