|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.infodesire.infobit.render.velocity.VelocityRenderer
takes care of infobit rendering. knows how to do it, which version to take and whatever. also produces fake templates for images / whatever.
| Constructor Summary | |
VelocityRenderer()
Constructor for the VelocityRenderer object |
|
| Method Summary | |
InfobitManager |
getManager()
Gets the Manager attribute of the VelocityRenderer object |
void |
init(java.util.Properties properties)
initialize itself and velocity with given properties. |
void |
render(java.lang.String name,
java.io.Writer writer,
java.util.Map parameters)
entry point for infobit rendering |
void |
setManager(InfobitManager manager)
Sets the Manager attribute of the VelocityRenderer object |
void |
setupContext(org.apache.velocity.context.Context context,
java.lang.String infobitName)
setup context for infobit rendering. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VelocityRenderer()
| Method Detail |
public InfobitManager getManager()
getManager in interface InfobitRenderer
public void setupContext(org.apache.velocity.context.Context context,
java.lang.String infobitName)
context - velocity context to be augmentedinfobitName - Description of Parameterpublic void setManager(InfobitManager manager)
setManager in interface InfobitRenderermanager - The new Manager value
public void render(java.lang.String name,
java.io.Writer writer,
java.util.Map parameters)
throws java.lang.Exception
render in interface InfobitRendererwriter - sink for rendered infobit dataname - name of infobit in questionparameters - parameter map - wil lbe used to rig up velocity
context.
java.lang.Exception - could be thrown if something wrong happens.public void init(java.util.Properties properties)
init in interface InfobitRendererproperties - Description of Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||