|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.components.renderer.ExtendableRendererFactory
public class ExtendableRendererFactory
An extendable FOP Renderer factory.
When given a MIME type, find a Renderer which supports that MIME
type. This factory is extendable as new Renderer
s can
be added at runtime.
Field Summary | |
---|---|
protected static Map |
renderers
|
protected static RendererFactory |
singleton
|
Method Summary | |
---|---|
void |
addRenderer(String mimeType,
Class rendererClass)
Add a mapping from the specified MIME type to a renderer. |
org.apache.fop.render.Renderer |
createRenderer(String mimeType)
Create a renderer for a specified MIME type. |
static RendererFactory |
getRendererFactoryImplementation()
Get a reference to this Renderer Factory. |
void |
removeRenderer(String mimeType)
Remove the mapping from a specified MIME type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Map renderers
protected static final RendererFactory singleton
Method Detail |
---|
public static final RendererFactory getRendererFactoryImplementation()
public org.apache.fop.render.Renderer createRenderer(String mimeType)
createRenderer
in interface RendererFactory
mimeType
- The MIME type of the destination format
null
if one cannot be foundpublic void addRenderer(String mimeType, Class rendererClass)
mimeType
- The MIME type of the RendererrendererClass
- The Class
object for the Renderer.public void removeRenderer(String mimeType)
mimeType
- The MIME type to remove from the mapping.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |