Class KeyGenerator

java.lang.Object
pl.maciejkopec.offlinemode.service.KeyGenerator

public class KeyGenerator extends Object
Generator used to create a key based on the method definition.
It supports two modes: argument based and SPeL based.
Argument based mode will generate key based on: type name, name of the method and method parameters.
SPeL mode use the SPeL expression defined in OfflineMode.key() to generate the key.
  • Constructor Details

    • KeyGenerator

      public KeyGenerator()
  • Method Details

    • generate

      public String generate(org.aspectj.lang.ProceedingJoinPoint joinPoint, OfflineMode offlineMode)