Annotation Type 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
      java.lang.String name
      Returns the namespace name to reference a cache.
      java.lang.Class<?> value
      Returns the namespace type to reference a cache (the namespace name become a FQCN of specified type).
    • Element Detail

      • value

        java.lang.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

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