@ ManagedAttribute ( description = "Returns the cache name" , displayName = "Cache name" , dataType = DataType . TRAIT , displayType = DisplayType . SUMMARY ) public String getCacheName ( ) { String name = getName ( ) . equals ( BasicCacheContainer . DEFAULT_CACHE_NAME ) ? "Default Cache" : getName ( ) ; return name + "(" + getCacheConfiguration ( ) . clustering ( ) . cacheMode ( ) . toString ( ) . toLowerCase ( ) + ")" ; }
Returns the cache name . If this is the default cache it returns a more friendly name .