类 NameMatchCacheOperationSource

    • 字段详细资料

      • logger

        protected static final Log logger
        Logger available to subclasses.

        Static for optimal serialization.

    • 方法详细资料

      • addCacheMethod

        public void addCacheMethod​(String methodName,
                                   Collection<CacheOperation> ops)
        Add an attribute for a cacheable method.

        Method names can be exact matches, or of the pattern "xxx*", "*xxx" or "*xxx*" for matching multiple methods.

        参数:
        methodName - the name of the method
        ops - operation associated with the method
      • isMatch

        protected boolean isMatch​(String methodName,
                                  String mappedName)
        Return if the given method name matches the mapped name.

        The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. Can be overridden in subclasses.

        参数:
        methodName - the method name of the class
        mappedName - the name in the descriptor
        返回:
        if the names match
        另请参阅:
        PatternMatchUtils.simpleMatch(String, String)