|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebFragmentHelper
Provides application specific methods to build/render web fragments
| Method Summary | |
|---|---|
java.lang.String |
getI18nValue(java.lang.String key,
java.util.List<?> arguments,
java.util.Map<java.lang.String,java.lang.Object> context)
Look up a message key in the application |
Condition |
loadCondition(java.lang.String className,
Plugin plugin)
Creates a condition instance. |
ContextProvider |
loadContextProvider(java.lang.String className,
Plugin plugin)
Creates a context provider instance. |
java.lang.String |
renderVelocityFragment(java.lang.String fragment,
java.util.Map<java.lang.String,java.lang.Object> context)
Renders the string fragment as a Velocity template |
| Method Detail |
|---|
Condition loadCondition(java.lang.String className,
Plugin plugin)
throws ConditionLoadingException
AutowireCapablePlugin
className - the condition class nameplugin - the plugin from which the condition came
ConditionLoadingException - If the condition was unable to be created
ContextProvider loadContextProvider(java.lang.String className,
Plugin plugin)
throws ConditionLoadingException
AutowireCapablePlugin
className - the context provider class nameplugin - the plugin from which the context provider came
ConditionLoadingException - If the context provider was unable to be created
java.lang.String getI18nValue(java.lang.String key,
java.util.List<?> arguments,
java.util.Map<java.lang.String,java.lang.Object> context)
key - The message keyarguments - The arguments to use to replace tokens with any expressions already processedcontext - The context (optional)
java.lang.String renderVelocityFragment(java.lang.String fragment,
java.util.Map<java.lang.String,java.lang.Object> context)
fragment - The string fragment to rendercontext - The context to use as the base of the Velocity context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||