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