|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.service.dashboard.renderers.RendererRegistry
public class RendererRegistry
A registry that maintains a list of all renderer service providers.
The RendererRegistry
should be accessed through the
instance obtained by calling
RendererRegistry.instance()
. This instance is
initialised with the SPI implementations available through the
current class path.
Method Summary | |
---|---|
void |
addRenderer(Renderer renderer)
Add a renderer to this registry. |
Renderer |
get(int index)
Get index-th renderer. |
Renderer |
getRenderer(String criterion,
Object value)
Get a default renderer for given 'value' within given 'criterion'. |
List |
getRenderers(String criterion,
Object value)
Get all renderers for given 'value' within given 'criterion'. |
static RendererRegistry |
instance()
|
Iterator |
iterator()
Return an iterator over all registered renderers. |
void |
loadInstances(ClassLoader classLoader)
Load all Renderer implementations that are registered in the given ClassLoader. |
void |
removeRenderer(Renderer renderer)
Remove a renderer from this registry. |
int |
size()
How many renderers are available. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static RendererRegistry instance()
public void loadInstances(ClassLoader classLoader)
classLoader
- a ClassLoader which will be searchedpublic Renderer getRenderer(String criterion, Object value)
criterion
- is a category of the value, e.g. "MIME-TYPE"value
- is a value from the category criterion, e.g. "text/xml"
public List getRenderers(String criterion, Object value)
criterion
- is a category of the value, e.g. "MIME-TYPE"value
- is a value from the category criterion, e.g. "text/xml"
public void addRenderer(Renderer renderer)
public void removeRenderer(Renderer renderer)
public int size()
public Iterator iterator()
public Renderer get(int index)
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |