org.grinvin.factories.graphs

Class GraphFactoryManager


public final class GraphFactoryManager
extends java.lang.Object

Keeps track of all graph factories that are currently supported by the system.

This is a singleton class. The single shared object of this class can be retreived using the method getInstance().

Method Summary

void
addToList(List list)
Add all graph factories to the given list.
GraphFactory
getGraphFactory(String id)
Return the factory with the given id.
Iterable
getIds()
Return the list of all ids, in the form of an Iterable.
static GraphFactoryManager
getInstance()
Retrieve the single (shared) instance of this class.

Method Details

addToList

public void addToList(List list)
Add all graph factories to the given list.

getGraphFactory

public GraphFactory getGraphFactory(String id)
Return the factory with the given id.

getIds

public Iterable getIds()
Return the list of all ids, in the form of an Iterable.

getInstance

public static GraphFactoryManager getInstance()
Retrieve the single (shared) instance of this class.