com.nostra13.universalimageloader.core
Class DefaultConfigurationFactory

java.lang.Object
  extended by com.nostra13.universalimageloader.core.DefaultConfigurationFactory

public class DefaultConfigurationFactory
extends java.lang.Object

Factory for providing of default options for configuration

Since:
1.5.6
Author:
Sergey Tarasevich (nostra13[at]gmail[dot]com)

Constructor Summary
DefaultConfigurationFactory()
           
 
Method Summary
static BitmapDisplayer createBitmapDisplayer()
          Creates default implementation of BitmapDisplayer - SimpleBitmapDisplayer
static DiscCacheAware createDiscCache(android.content.Context context, FileNameGenerator discCacheFileNameGenerator, int discCacheSize, int discCacheFileCount)
          Creates default implementation of DiscCacheAware depends on incoming parameters
static java.util.concurrent.Executor createExecutor(int threadPoolSize, int threadPriority, QueueProcessingType tasksProcessingType)
          Creates default implementation of task executor
static FileNameGenerator createFileNameGenerator()
          Creates default implementation of FileNameGenerator
static ImageDecoder createImageDecoder(boolean loggingEnabled)
          Creates default implementation of ImageDecoder - BaseImageDecoder
static ImageDownloader createImageDownloader(android.content.Context context)
          Creates default implementation of ImageDownloader - BaseImageDownloader
static MemoryCacheAware<java.lang.String,android.graphics.Bitmap> createMemoryCache(int memoryCacheSize)
          Creates default implementation of MemoryCacheAware depends on incoming parameters:
LruMemoryCache (for API >= 9) or LRULimitedMemoryCache (for API < 9).
static DiscCacheAware createReserveDiscCache(java.io.File cacheDir)
          Creates reserve disc cache which will be used if primary disc cache becomes unavailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigurationFactory

public DefaultConfigurationFactory()
Method Detail

createExecutor

public static java.util.concurrent.Executor createExecutor(int threadPoolSize,
                                                           int threadPriority,
                                                           QueueProcessingType tasksProcessingType)
Creates default implementation of task executor


createFileNameGenerator

public static FileNameGenerator createFileNameGenerator()
Creates default implementation of FileNameGenerator


createDiscCache

public static DiscCacheAware createDiscCache(android.content.Context context,
                                             FileNameGenerator discCacheFileNameGenerator,
                                             int discCacheSize,
                                             int discCacheFileCount)
Creates default implementation of DiscCacheAware depends on incoming parameters


createReserveDiscCache

public static DiscCacheAware createReserveDiscCache(java.io.File cacheDir)
Creates reserve disc cache which will be used if primary disc cache becomes unavailable


createMemoryCache

public static MemoryCacheAware<java.lang.String,android.graphics.Bitmap> createMemoryCache(int memoryCacheSize)
Creates default implementation of MemoryCacheAware depends on incoming parameters:
LruMemoryCache (for API >= 9) or LRULimitedMemoryCache (for API < 9).
Default cache size = 1/8 of available app memory.


createImageDownloader

public static ImageDownloader createImageDownloader(android.content.Context context)
Creates default implementation of ImageDownloader - BaseImageDownloader


createImageDecoder

public static ImageDecoder createImageDecoder(boolean loggingEnabled)
Creates default implementation of ImageDecoder - BaseImageDecoder


createBitmapDisplayer

public static BitmapDisplayer createBitmapDisplayer()
Creates default implementation of BitmapDisplayer - SimpleBitmapDisplayer



Copyright © 2011-2013. All Rights Reserved.