Class wwDbSimpleResourceProvider

Implementation of a very simple database Resource Provider. This implementation is self contained and doesn't use a custom ResourceManager. Instead it talks directly to the data resoure business layer (wwDbResourceDataManager).

Dependencies: wwDbResourceDataManager wwDbResourceConfiguration

You can replace those depencies (marked below in code) with your own data access management. The two dependcies manage all data access as well as configuration management via web.config configuration section. It's easy to remove these and instead use custom data access code of your choice.

System.Object
  Westwind.Globalization.wwDbSimpleResourceProvider

public class wwDbSimpleResourceProvider : object, IResourceProvider,
   IImplicitResourceProvider

Class Members

MemberDescription
ClearResourceCache Clears out the resource cache which forces all resources to be reloaded from the database.
public void ClearResourceCache();
GetImplicitResourceKeys Called when an ASP.NET Page is compiled asking for a collection of keys that match a given control name (keyPrefix). This routine for example returns control.Text,control.ToolTip from the Resource collection if they exist when a request for "control" is made as the key prefix.
public sealed ICollection GetImplicitResourceKeys( string keyPrefix );
GetObject Returns an Implicit key value from the ResourceSet. Note this method is called only if a ResourceKey was found in the ResourceSet at load time. If a resource cannot be located this method is never called to retrieve it. IOW, GetImplicitResourceKeys determines which keys are actually retrievable.
public sealed object GetObject( ImplicitResourceKey implicitKey,
CultureInfo culture );
ResourceReader The Resource Reader is used parse over the resource collection that the ResourceSet contains. It's basically an IEnumarable interface implementation and it's what's used to retrieve the actual keys

Requirements

Namespace: Westwind.Globalization
Assembly: westwind.globalization.dll


  Last Updated: 3/10/2008 | © West Wind Technologies, 2008