com.nostra13.universalimageloader.core
Class DefaultConfigurationFactory

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

public class DefaultConfigurationFactory
extends 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 DiskCache createDiskCache(android.content.Context context, FileNameGenerator diskCacheFileNameGenerator, long diskCacheSize, int diskCacheFileCount)
          Creates default implementation of DiskCache depends on incoming parameters
static 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 MemoryCache createMemoryCache(int memoryCacheSize)
          Creates default implementation of MemoryCache - LruMemoryCache
Default cache size = 1/8 of available app memory.
static Executor createTaskDistributor()
          Creates default implementation of task distributor
 
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 Executor createExecutor(int threadPoolSize,
                                      int threadPriority,
                                      QueueProcessingType tasksProcessingType)
Creates default implementation of task executor


createTaskDistributor

public static Executor createTaskDistributor()
Creates default implementation of task distributor


createFileNameGenerator

public static FileNameGenerator createFileNameGenerator()
Creates default implementation of FileNameGenerator


createDiskCache

public static DiskCache createDiskCache(android.content.Context context,
                                        FileNameGenerator diskCacheFileNameGenerator,
                                        long diskCacheSize,
                                        int diskCacheFileCount)
Creates default implementation of DiskCache depends on incoming parameters


createMemoryCache

public static MemoryCache createMemoryCache(int memoryCacheSize)
Creates default implementation of MemoryCache - LruMemoryCache
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-2014. All Rights Reserved.