public enum DataSourceTemplateReferenceMode extends java.lang.Enum<DataSourceTemplateReferenceMode> implements ValueEnum
DataSource.allowTemplateReferences
for an overview
of configuration templating.Enum Constant and Description |
---|
ALL
Indicates that full Velocity processing will be used to resolve templated references.
|
CONFIGONLY
Indicates that a simple find-and-replace process should resolve templated references.
|
NONE
Indicates that no resolution of templated references should be done
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static DataSourceTemplateReferenceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataSourceTemplateReferenceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSourceTemplateReferenceMode NONE
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "none".
public static final DataSourceTemplateReferenceMode CONFIGONLY
server.properties
file. So if your
server.properties
file contained an entry like this:database.name: MyDatabasethe below example would cause
dbName
to be resolved as MyDatabase
dbName="$config['database.name']"(Note, you can use a different token than "
$config
" if you need to - see
templateConfigToken
)
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "configOnly".
public static final DataSourceTemplateReferenceMode ALL
$config
" object, as with "configOnly", and some of the other variables listed in the Velocity overview
, but nothing relating to DSRequest
s
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "all".
public static DataSourceTemplateReferenceMode[] values()
for (DataSourceTemplateReferenceMode c : DataSourceTemplateReferenceMode.values()) System.out.println(c);
public static DataSourceTemplateReferenceMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null