CacheResolverRegistry class abstract interface

A registry contract for managing multiple CacheResolver pods within JetLeaf.

The CacheResolverRegistry defines the mechanism for registering and coordinating CacheResolver instances. These resolvers are responsible for mapping a Cacheable annotation (logical cache operation) to one or more physical CacheStorage instances managed by underlying CacheManager pods.

Responsibilities

  • Acts as a central registry for all cache resolvers.
  • Ensures resolvers can be added dynamically or during initialization.
  • Serves as the delegation point for composite resolver chains, such as CompositeCacheResolver, to maintain deterministic lookup order.

Usage

A typical implementation (e.g., CompositeCacheResolver) will:

  1. Maintain a synchronized set of resolvers.
  2. Support lifecycle discovery via PodFactoryAware and SmartInitializingSingleton.
  3. Provide resolution delegation through a resolver chain.

Example

final registry = CompositeCacheResolver();
registry.addResolver(myCustomResolver);
  • CacheResolver: Resolves Cacheable annotations to concrete CacheStorage instances.
  • CompositeCacheResolver: A registry implementation that manages multiple resolvers.
  • CacheManager: Provides physical cache storage for resolved caches.
Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addResolver(CacheResolver cacheResolver) → void
Adds a CacheResolver pod to this registry.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited