public class VelocityStringResourceRepositoryAdaptor extends Object
StringResourceRepository
associated with the particular StringResourceLoader
implementation used by a instance. This is done via reflection, so that
either the legacy "bug fix" copy we included in the library or the up to date version
included in newer Velocity versions can be used interchangeably.Modifier and Type | Method and Description |
---|---|
static org.apache.velocity.runtime.resource.util.StringResourceRepository |
getRepository(org.apache.velocity.app.VelocityEngine engine)
Returns a reference to the default static repository.
|
static org.apache.velocity.runtime.resource.util.StringResourceRepository |
getRepository(org.apache.velocity.app.VelocityEngine engine,
String name)
Returns a reference to the repository stored statically under the specified name.
|
public static org.apache.velocity.runtime.resource.util.StringResourceRepository getRepository(org.apache.velocity.app.VelocityEngine engine)
engine
- Velocity engine to obtain repository forpublic static org.apache.velocity.runtime.resource.util.StringResourceRepository getRepository(org.apache.velocity.app.VelocityEngine engine, String name)
engine
- Velocity engine to obtain repository forname
- name of repository to accessCopyright © 1999–2014. All rights reserved.