public class ViewManager extends DestroyableBase
Manage different view solutions
Destroyable.Util
logger
Constructor and Description |
---|
ViewManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearAppDefinedVars() |
Template |
getTemplate(java.lang.String path) |
java.util.Collection<ActionViewVarDef> |
implicitActionViewVariables() |
java.util.Collection<MailerViewVarDef> |
implicitMailerViewVariables() |
static boolean |
isTemplatePath(java.lang.String string)
Check if a given string is a template path or template content
|
Template |
load(ActContext context) |
void |
onAppStart() |
protected void |
releaseResources() |
void |
reload(App app) |
void |
reset() |
View |
view(java.lang.String name) |
addSubResource, destroy, isDestroyed, reload, scope
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
public void clearAppDefinedVars()
public void onAppStart()
public void reload(App app)
public View view(java.lang.String name)
public Template load(ActContext context)
public Template getTemplate(java.lang.String path)
public java.util.Collection<ActionViewVarDef> implicitActionViewVariables()
public java.util.Collection<MailerViewVarDef> implicitMailerViewVariables()
public void reset()
protected void releaseResources()
releaseResources
in class DestroyableBase
public static boolean isTemplatePath(java.lang.String string)
Check if a given string is a template path or template content
If the string contains anyone the following characters then we assume it is content, otherwise it is path:
string
- the string to be testedtrue
if the string literal is template content or false
otherwiseCopyright © 2014–2017 ActFramework. All rights reserved.