需要来自权限才能删除enging.support的游戏要怎样删除

手机engine support 是什么软件-学网-中国IT综合门户网站-提供健康,养生,留学,移民,创业,汽车等信息
> 信息中心 >
手机engine support 是什么软件
来源:互联网 发表时间: 4:27:00 责任编辑:鲁晓倩字体:
为了帮助网友解决“手机engine support 是什么软件”相关的问题,学网通过互联网对“手机engine support 是什么软件”相关的解决方案进行了整理,用户详细问题包括:RT,我想知道:手机engine support 是什么软件,具体解决方案如下:解决方案1:建议卸载这是一个木马,连带还有三个被一同强制下载至手机中。下载360手机卫士进行木马查杀
1个回答1个回答1个回答1个回答3个回答1个回答1个回答1个回答1个回答1个回答
相关文章:
最新添加资讯
24小时热门资讯
Copyright © 2004- All Rights Reserved. 学网 版权所有
京ICP备号-1 京公网安备02号Chapter&33.&Template Engine SupportChapter&33.&Template Engine Support
33.1.&Introduction
The Spring Framework features integration classes for templating
engine support. Spring 1.3 provides support for the
templating engine.
33.2.&Dependencies
The Spring NVelocity support depends on the Castle project's
NVelocity implementation which is located in the lib directory of the
Spring release.
33.3.&Configuring a VelocityEngine
The NVelocity template engine is set up using a
IFactoryObject with optional configuration parameters
to define where templates reside, define logging and more. For more
information on IFactoryObjects see . A custom namespace
parser is provided to simplify the configuration of a NVelocity template
engine. For more information on custom namespace parser see .
33.3.1.&Simple file based template engine definition
You create a simple definition of the template engine that uses
the default resource loader as follows:
&objects xmlns="http://www.springframework.net" xmlns:nv="http://www.springframework.net/nvelocity"&
&!-- Simple no arg file based configuration use's NVeclocity default file resource loader
&nv:engine id="velocityEngine" /&
&/objects&
The velocity engine could then be used to load and merge a local
template using a simple relative path (the default resource loader path
is the current execution directory):
StringWriter stringWriter = new StringWriter();
Hashtable modelTable = new Hashtable();
modelTable.Add("var1", TEST_VALUE);
VelocityContext velocityContext = new VelocityContext(modelTable);
velocityEngine.MergeTemplate("Template/Velocity/MyTemplate.vm", Encoding.UTF8.WebName, velocityContext, stringWriter);
string mergedContent = stringWriter.ToString();
To disable the use of NVelocity's file loader that tracks runtime
changes, set the element prefer-file-system-access of
&engine/& to false.
33.3.2.&Configuration Options
You can define several attributes on the &engine& element to
control how the factory is configured:
Table&33.1.&Engine Factory Configuration Options
AttributeDescriptionRequiredDefault Valueconfig-file
A uri of a properties file defining the NVelocity
configuration. This value accepts all spring resource loader
uri (e.g., file://, http://). See
noN/Aprefer-file-system-access
Instructs the NVelocity engine factory to attempt use
NVelocity's file loader. When set to false the provided
SpringResourceLoader will be used (and the
ResourceLoaderPath property must be
notrueoverride-logging
Instructs the NVelocity engine factory to use the
provided spring commons logging based logging system. See
33.3.3.&Assembly based template loading
When templates are packaged in an assembly, NVelocity's assembly
resource loader can be used to define where templates reside:
&nv:engine id="velocityEngine" &
&nv:resource-loader&
&nv:assembly name="MyAssembly" /&
&/nv:resource-loader&
&/nv:nvelocity&
Using the example above the template would be loaded using a
namespace syntax for the template resource:
velocityEngine.MergeTemplate("MyAssembly.MyNamespace.MyTemplate.vm", Encoding.UTF8.WebName, velocityContext, stringWriter);
33.3.4.&Using Spring's IResourceLoader to load
In some cases Spring's
abstraction can be beneficial to load templates from a variety of
resources. A Spring IResource loader extension to the NVelocity resource
loader implementation is provided for this use case. The following
object definition loads the NVelocity templates from a single
&nv:engine id="velocityEngine"&
&nv:resource-loader&
&nv:spring uri="file://Template/Velocity/"/&
&/nv:resource-loader&
&/nv:engine&
Or with multiple locations
&nv:engine id="velocityEngine"&
&nv:resource-loader&
&nv:spring uri="file://Template/Velocity/"/&
&nv:spring uri="assembly://MyAssembly/MyNameSpace"/&
&/nv:resource-loader&
&/nv:engine&
By default spring will attempt to load resources using
NVelocity's file based template loading (useful for detection of
template changes at runtime). If this is not desirable you set the
prefer-file-system-access property of the factory
object to false which will cause the factory to
utilize the supplied spring resource loader.
Using the example above when resource loader paths are defined
templates can be loaded using their name:
string mergedTemplate = VelocityEngineUtils.MergeTemplateIntostring(velocityEngine, "MyFileTemplate.vm", Encoding.UTF8.WebName, model); // template loaded from file://Template/Velocity/
string mergedTemplate = VelocityEngineUtils.MergeTemplateIntostring(velocityEngine, "MyAseemblyTemplate.vm", Encoding.UTF8.WebName, model); // template loaded from assembly://MyAssembly/MyNameSpace
33.3.5.&Defining a custom resource loader
The following defines a custom resource loader (the type is an
extension of NVelocity's ResourceLoader
&nv:engine id="velocityEngine"&
&nv:resource-loader&
&nv:custom name="myResourceLoader"
description="A custom resource loader"
type="MyNamespace.MyResourceLoader, MyAssembly"
path="Template/Velocity/"/&
&/nv:resource-loader&
&/nv:engine&
33.3.6.&Resource Loader configuration options
The &nv:resource-loader& element has additional attributes
which define how NVelocity's resource manager and resource loader
Table&33.2.&Resource Loader Configuration Options
AttributeDescriptionRequiredDefault Valuedefault-cache-size
defines resource manager global cache size, applies when
caching is turned on. This maps to NVelocity's resource
manager resource.manager.defaultcache.size
no89template-caching
Enables template caching for the defined resource
loader. This maps to NVelocity's resource loader
&name&.resource.loader.cache
nofalsemodification-check-interval
The modification check interval value (seconds) of the
resource loader, applies only to resource loader with change
detection capabilities (file or custom). This maps to
NVelocity's resource loader
&name&.resource.loader.modificationCheckInterval
33.3.7.&Using a custom configuration file
If so desired one could provide a custom configuration resource to
customize the NVelocity configuration:
&nv:engine id="velocityEngine" config-file="file://Template/Velocity/config.properties"/&
You can override specific properties by providing the
VelocityProperties property to the NVelocity factory
object (shown above)
&nv:engine id="velocityTemplate" &
&nv:nvelocity-properties&
&entry key="input.encoding"
value="ISO-8859-1"/&
&entry key="output.encoding" value="ISO-8859-1"/&
&/nv:nvelocity-properties&
&/nv:engine&
33.3.8.&Logging
By default Spring will override NVelocity's default
ILogSystem implementation with its own
CommonsLoggingLogSystem implementation so that the
logging stream of NVelocity will go to the same logging subsystem that
Spring uses. If this is not desirable, you can specify the following
property of the NVelocity factory object:
&template:nvelocity id="velocityEngine" override-logging="false" /&
33.4.&Merging a template
Spring provides the VelocityEngineUtils utility
for merging templates using an engine instance:
string mergedTemplate = VelocityEngineUtils.MergeTemplateIntostring(velocityEngine, "MyTemplate.vm", Encoding.UTF8.WebName, model);
33.5.&Configuring a VelocityEngine without a custom namespace
While most users will prefer to use the NVelocity custom namespace
to configure a VelocityEngine, you can also use standard &object/&
definition syntax as shown below:
To create a VelocityEngine using the default file resource loader
use the definition:
&!-- Simple no arg file based configuration use's NVelocity default file resource loader
&object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity" /&
For convenience in defining NVelocity engine instances a custom
namespace is provided, for example the resource loader definition could be
done this way:
&objects xmlns="http://www.springframework.net" xmlns:nv="http://www.springframework.net/nvelocity"&
&nv:nvelocity id="velocityEngine" &
&nv:resource-loader&
&nv:file path="Template/Velocity/" /&
&/nv:resource-loader&
&/nv:nvelocity&
When templates are packaged in an assembly, NVelocity's assembly
resource loader can be used to define where templates reside:
&!-- Assembly based template loading with NVelocity assembly resource loader --&
&object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity"&
&property name="VelocityProperties"&
&dictionary key-type="string" value-type="object"&
&entry key="resource.loader" value="assembly"/&
&entry key="assembly.resource.loader.class" value="NVelocity.Runtime.Resource.Loader.AssemblyResourceLoader"/&
&entry key="assembly.resource.loader.assembly" value="MyAssembly"/&
&/dictionary&
&/property&
To load NVelocity templates from a single path use the
definition:
&object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity" &
&property name="ResourceLoaderPath" value="file://MyTemplateFolder/AnotherFolder/" /&
To load NVelocity templates from multiple paths use the
definition:
&object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity" &
&property name="ResourceLoaderPaths" &
&value&file://MyTemplateFolder/&/value&
&value&file://MyOtherTemplateFolder/&/value&
&/property&
By default spring will attempt to load resources using NVelocity's
file based template loading (useful for detection of template changes at
runtime). If this is not desirable you set the
preferFileSystemAccess property of the factory object
to false which will cause the factory to utilize the
supplied spring resource loader.
To refer to a property file based configuration of the
TemplateEngine use the definition:
&object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity" &
&property name="ConfigLocation " value="file://Template/Velocity/config.properties" /&
You can override specific properties by providing the
VelocityProperties property.
To not integrate with the Common.Logging subsystem, set the
OverrideLogging property to false:
&object id="velocityEngine" type="Spring.Template.Velocity.VelocityEngineFactoryObject, Spring.Template.Velocity" &
&property name="OverrideLogging" value="false" /&(水蜜桃003)
(游戏音乐制作)
第三方登录:

参考资料

 

随机推荐