if (log.isTraceEnabled()) log.trace("Cache configuration is " + configuration.getNodeLockingScheme());
switch (configuration.getNodeLockingScheme())
{
case MVCC:
if (log.isTraceEnabled()) log.trace("Creating an MVCC context factory");
return componentType.cast(new MVCCContextFactory());
case OPTIMISTIC:
if (log.isTraceEnabled()) log.trace("Creating an optimistic context factory");
return componentType.cast(new OptimisticContextFactory());
case PESSIMISTIC:
if (log.isTraceEnabled()) log.trace("Creating a pessimistic context factory");