|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrendsite.renderer.RendererCatalog
public class RendererCatalog
Catalog of renderers.
Mostly hardcoded for now. When it gets bigger, the configuration can go into a file.
10NOV09 - EPG - First package release.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_RENDERER_CLASS_NAME
|
static java.lang.String |
DEFAULT_RENDERER_NAME
Default renderer name. |
static int |
MAX_CLASS_NOT_FOUND_FOR_PANIC
|
static java.lang.String |
SOURCETEMPLATE_V1_RENDERER_CLASS_NAME
|
static java.lang.String |
SOURCETEMPLATE_V1_RENDERER_NAME
Template for code (software) processing version 1. |
static java.lang.String |
TEMPLATE_V1_RENDERER_CLASS_NAME
|
static java.lang.String |
TEMPLATE_V1_RENDERER_NAME
Template processing version 1. |
| Constructor Summary | |
|---|---|
RendererCatalog()
Construct a renderer catalog. |
|
| Method Summary | |
|---|---|
Renderer |
getRenderer(java.lang.String name,
RenderingContext rcontext,
PropertiesGeneralContext pcontext)
Get a renderer by name. |
void |
reset()
Reset the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_CLASS_NOT_FOUND_FOR_PANIC
public static final java.lang.String DEFAULT_RENDERER_NAME
public static final java.lang.String DEFAULT_RENDERER_CLASS_NAME
public static final java.lang.String TEMPLATE_V1_RENDERER_NAME
public static final java.lang.String TEMPLATE_V1_RENDERER_CLASS_NAME
public static final java.lang.String SOURCETEMPLATE_V1_RENDERER_NAME
public static final java.lang.String SOURCETEMPLATE_V1_RENDERER_CLASS_NAME
| Constructor Detail |
|---|
public RendererCatalog()
throws java.lang.Throwable
java.lang.Throwable - will only happen if the context is bad or the catalog could not be loaded.| Method Detail |
|---|
public Renderer getRenderer(java.lang.String name,
RenderingContext rcontext,
PropertiesGeneralContext pcontext)
throws things.common.ThingsException
name - The name. It is case sensitive! If null or empty, it will get the default.rcontext - needed if the renderer will be constructed.pcontext - needed if the renderer will be constructed.
things.common.ThingsException
public void reset()
throws java.lang.Throwable
reset in interface Resetablejava.lang.Throwable - if it could not completely reset state.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||