Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Caching Example
- Next: About the Servlet Engine

### CacheKeyGenerator Interface

The built-in default `CacheHelper` implementation allows web applications to customize the key generation. An application component (in a servlet or JSP) can set up a custom `CacheKeyGenerator` implementation as an attribute in the `ServletContext`.

The name of the context attribute is configurable as the `value` of the `cacheKeyGeneratorAttrName` property in the `default-helper` element of the `sun-web.xml` deployment descriptor. For more information, see default-helper.

- Previous: Caching Example
- Next: About the Servlet Engine

- © 2010, Oracle Corporation and/or its affiliates