|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rythmengine.conf.RythmConfiguration
public class RythmConfiguration
Store the configuration for a rythm engine
instance. Different engine instance has different configuration instance.
| Field Summary | |
|---|---|
static RythmConfiguration |
EMPTY_CONF
|
| Constructor Summary | |
|---|---|
RythmConfiguration(Map<String,?> configuration,
RythmEngine engine)
Construct a RythmConfiguration with a map. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RythmConfiguration EMPTY_CONF
| Constructor Detail |
|---|
public RythmConfiguration(Map<String,?> configuration,
RythmEngine engine)
RythmConfiguration with a map. The map is copied to
the original map of the configuration instance
configuration - | Method Detail |
|---|
public <T> T get(RythmConfigurationKey key)
configuration key
T - key -
public <T> List<T> getList(RythmConfigurationKey key,
Class<T> c)
T - key - c -
public <T> T get(String key)
String key. If the String key
can be converted into rythm configuration key, then
it is converted and call to get(RythmConfigurationKey) method. Otherwise
the original configuration map is used to fetch the value from the string key
- Type Parameters:
T - - Parameters:
key -
- Returns:
- the configured item
public String pluginVersion()
plugin version without lookup
public IByteCodeHelper byteCodeHelper()
RythmConfigurationKey.ENGINE_CLASS_LOADER_BYTE_CODE_HELPER_IMPL without lookup
public boolean playFramework()
RythmConfigurationKey.ENGINE_PLAYFRAMEWORK without lookup
public boolean logRenderTime()
RythmConfigurationKey.LOG_TIME_RENDER_ENABLED without
look up
public boolean loadPrecompiled()
RythmConfigurationKey.ENGINE_LOAD_PRECOMPILED_ENABLED
without lookup
public boolean precompileMode()
RythmConfigurationKey.ENGINE_PRECOMPILE_MODE without lookup
public boolean disableFileWrite()
RythmConfigurationKey.ENGINE_FILE_WRITE_ENABLED
without lookup
public boolean gae()
public Set<String> restrictedClasses()
RythmConfigurationKey.SANDBOX_RESTRICTED_CLASS without lookup
Note, the return value also contains rythm's built-in restricted classes
public boolean typeInferenceEnabled()
RythmConfigurationKey.FEATURE_TYPE_INFERENCE_ENABLED without
lookup
public boolean smartEscapeEnabled()
RythmConfigurationKey.FEATURE_SMART_ESCAPE_ENABLED without lookup
public boolean naturalTemplateEnabled()
RythmConfigurationKey.FEATURE_NATURAL_TEMPLATE_ENABLED without lookup
public boolean debugJavaSourceEnabled()
RythmConfigurationKey.ENGINE_OUTPUT_JAVA_SOURCE_ENABLED without lookup
public boolean cacheEnabled()
RythmConfigurationKey.CACHE_ENABLED is true orRythmConfigurationKey.CACHE_PROD_ONLY_ENABLED is true and
RythmConfigurationKey.ENGINE_MODE is Rythm.Mode.dev
public boolean cacheDisabled()
cacheEnabled()public boolean transformEnabled()
RythmConfigurationKey.FEATURE_TRANSFORM_ENABLED without look up
public boolean compactModeEnabled()
RythmConfigurationKey.CODEGEN_COMPACT_ENABLED without look up
public IDurationParser durationParser()
RythmConfigurationKey.CACHE_DURATION_PARSER_IMPL without lookup
public ICodeType defaultCodeType()
RythmConfigurationKey.DEFAULT_CODE_TYPE_IMPL without lookup
public File tmpDir()
RythmConfigurationKey.HOME_TMP without lookup
public List<File> templateHome()
RythmConfigurationKey.HOME_TEMPLATE without lookup
public void setTemplateHome(File home)
Note, this is not supposed to be used by user application or third party plugin
public IByteCodeEnhancer byteCodeEnhancer()
RythmConfigurationKey.CODEGEN_BYTE_CODE_ENHANCER without lookup
public ISourceCodeEnhancer sourceEnhancer()
public Locale locale()
RythmConfigurationKey.I18N_LOCALE without lookup
public List<String> messageSources()
RythmConfigurationKey.I18N_MESSAGE_SOURCES without lookup
public II18nMessageResolver i18nMessageResolver()
RythmConfigurationKey.I18N_MESSAGE_RESOLVER without lookup
public String resourceNameSuffix()
RythmConfigurationKey.RESOURCE_NAME_SUFFIX without lookup
public boolean autoScan()
public String allowedSystemProperties()
public boolean sandboxTmpIO()
public boolean hasGlobalInclude()
public static RythmConfiguration get()
empty configuration
is returned
public void debug()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||