Annotation Interface CacheNamespaceRef


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface CacheNamespaceRef
The annotation that reference a cache.

If you use this annotation, should be specified either value() or name() attribute.

How to use:

 @CacheNamespaceRef(UserMapper.class)
 public interface AdminUserMapper {
   // ...
 }
 
Author:
Clinton Begin, Kazuki Shimizu
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the namespace name to reference a cache.
    Returns the namespace type to reference a cache (the namespace name become a FQCN of specified type).
  • Element Details

    • value

      Class<?> value
      Returns the namespace type to reference a cache (the namespace name become a FQCN of specified type).
      Returns:
      the namespace type to reference a cache
      Default:
      void.class
    • name

      String name
      Returns the namespace name to reference a cache.
      Returns:
      the namespace name
      Since:
      3.4.2
      Default:
      ""