net.sf.ehcache.exceptionhandler |
This package is for exception handling.
Normally, an exception will be thrown. However an exception handler may be registered at configuration
time in ehcache.xml, or set at runtime (a strategy), to handle an exception.
If an exception handler is registered, the default behaviour of throwing the exception will not occur. The handler
method onException will be called. Of course, if the handler decides to throw the exception, it will
propagate up through the call stack. If the handler does not, it won't.
This package defines an ExceptionHandler interface, and also a CacheExceptionHandlerFactory, which is used for
configuration.
|
Java Source File Name | Type | Comment |
CacheExceptionHandler.java | Interface | A handler which may be registered with an Ehcache, to handle exception on Cache operations.
Handlers may be registered at configuration time in ehcache.xml, using a CacheExceptionHandlerFactory, or
set at runtime (a strategy).
If an exception handler is registered, the default behaviour of throwing the exception will not occur. |
CacheExceptionHandlerFactory.java | Class | An abstract factory for creating CacheExceptionHandler s at configuration time, in ehcache.xml. |
CacheExceptionHandlerTest.java | Class | |
CountingExceptionHandler.java | Class | |
CountingExceptionHandlerFactory.java | Class | |
ExceptionHandlingDynamicCacheProxy.java | Class | A dynamic proxy which provides CacheException handling.
The ehcache configuration will create and register in the CacheManager
Ehcache s decorated
with this dynamic proxy. |