C# Class Spring.Globalization.AbstractResourceCache

Abstract base class that all resource cache implementations should extend.
Inheritance: IResourceCache
显示文件 Open project: spring-projects/spring-net

Public Methods

Method Description
GetResources ( object target, CultureInfo culture ) : IList

Gets the list of resources from the cache.

PutResources ( object target, CultureInfo culture, IList resources ) : void

Puts the list of resources in the cache.

Protected Methods

Method Description
CreateCacheKey ( object target, CultureInfo culture ) : string

Crates resource cache key for the specified target object and culture.

GetResources ( string cacheKey ) : IList

Gets the list of resources from cache.

PutResources ( string cacheKey, IList resources ) : void

Puts the list of resources in the cache.

Method Details

CreateCacheKey() protected method

Crates resource cache key for the specified target object and culture.
protected CreateCacheKey ( object target, CultureInfo culture ) : string
target object Target object to apply resources to.
culture System.Globalization.CultureInfo Resource culture to use for resource lookup.
return string

GetResources() public method

Gets the list of resources from the cache.
public GetResources ( object target, CultureInfo culture ) : IList
target object Target to get a list of resources for.
culture System.Globalization.CultureInfo Resource culture.
return IList

GetResources() protected abstract method

Gets the list of resources from cache.
protected abstract GetResources ( string cacheKey ) : IList
cacheKey string Cache key to use for lookup.
return IList

PutResources() public method

Puts the list of resources in the cache.
public PutResources ( object target, CultureInfo culture, IList resources ) : void
target object Target to cache a list of resources for.
culture System.Globalization.CultureInfo Resource culture.
resources IList A list of resources to cache.
return void

PutResources() protected abstract method

Puts the list of resources in the cache.
protected abstract PutResources ( string cacheKey, IList resources ) : void
cacheKey string Cache key to use for the specified resources.
resources IList A list of resources to cache.
return void