Registering a renderer

Once you have written the renderer class, you must register it in the style sheet. To do this, you can set the Renderers property in the SDM customization rule. The following code example shows the general form of the declaration.
The SDM customization rule
SDM {
   Renderers : "MyRendererName=my.package.MyRenderer";
}
In this declaration of the Renderers property,MyRendererName is the name that you will use to customize your renderer; my.package.MyRenderer is the full class name of your renderer class.
This declaration causes addRendererAlias, to be called. The other way to register a renderer is to call this method directly in your Java™ code.
If you register the renderer in the style sheet, then registering, loading and customizing can be seen as a single integration step.