org.apache.ojb.broker.cache
Class ObjectCacheFactory

java.lang.Object
  extended byorg.apache.ojb.broker.util.factory.ConfigurableFactory
      extended byorg.apache.ojb.broker.cache.ObjectCacheFactory
All Implemented Interfaces:
org.apache.ojb.broker.util.configuration.Configurable

public class ObjectCacheFactory
extends org.apache.ojb.broker.util.factory.ConfigurableFactory

Factory for ObjectCache implementation classes. Each given PersistenceBroker was associated with its own ObjectCache instance and vice versa.

Version:
$Id: ObjectCacheFactory.java,v 1.17 2004/04/04 23:53:33 brianm Exp $
Author:
Thomas Mahler

Constructor Summary
ObjectCacheFactory()
           
 
Method Summary
 ObjectCache createObjectCache(PersistenceBroker broker)
          Creates a new ObjectCache instance.
static ObjectCacheFactory getInstance()
          Get the ObjectCacheFactory instance.
 
Methods inherited from class org.apache.ojb.broker.util.factory.ConfigurableFactory
configure, createNewInstance, createNewInstance, createNewInstance, getClassToServe, setClassToServe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCacheFactory

public ObjectCacheFactory()
Method Detail

getInstance

public static ObjectCacheFactory getInstance()
Get the ObjectCacheFactory instance.


createObjectCache

public ObjectCache createObjectCache(PersistenceBroker broker)
Creates a new ObjectCache instance. Each ObjectCache implementation was wrapped by a CacheDistributor instance and if cache filtering is enabled by a CacheFilterRegistry instance too.

Parameters:
broker - The PB instance to associate with the cache instance


(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.1, 2004-09-08