/**
* This factory method should create an instance of the mysqlcache.
*/
public AuxiliaryCache createCache( AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager arg1 )
{
JDBCDiskCacheManager mgr = JDBCDiskCacheManager.getInstance( (JDBCDiskCacheAttributes) rawAttr );
try
{
setupDatabase( (JDBCDiskCacheAttributes) rawAttr );
}
catch ( Exception e )
{
// TODO we may not want to try and get the cache at this point.
log.error( "Problem setting up database.", e );
}
return mgr.getCache( (JDBCDiskCacheAttributes) rawAttr );
}