TcManager
, delegating the actual provision and creation of Graphs or MGraphs to registered TcProvider
s. The class attempts to satisfy the request using the register WeightedTcProvider
in decreasing order of weight. If multiple providers have the same weight the lexicographical order of the fully qualified class name determines which one is used, namely the one that occurs earlier. If a call to a registered provider causes an IllegalArgumentException
, NoSuchEntityException
or UnsupportedOperationException
then the call is delegated to the next provider. Only one instance of this class should exist in a system, the public no argument constructor is meant for initialization by dependency injection systems such as OSGi-DS. Applications should use the static getInstance()
method if they aren't using a framework that injects them the instance. This class returns LockableMGraph
s a subtype of MGraph
that allows read/write locks.
@author reto, mir, hasan
|
|