Interface IdGeneratorProvider

All Known Implementing Classes:
DefaultIdGeneratorProvider

@ThreadSafe public interface IdGeneratorProvider
IdGenerator container.
  • Field Details

  • Method Details

    • getShare

      IdGenerator getShare()
      Get shared ID generator.
      Returns:
      shared ID generator
    • setShare

      void setShare(IdGenerator idGenerator)
      Set shared ID generator.
      Parameters:
      idGenerator - Id Generator
    • removeShare

      IdGenerator removeShare()
      Remove shared ID generator.
      Returns:
      Previous ID generator
    • get

      Get ID generator by name.
      Parameters:
      name - name of ID generator
      Returns:
      ID generator
    • getRequired

      default IdGenerator getRequired(String name)
    • set

      void set(String name, IdGenerator idGenerator)
      Set ID generator by name.
      Parameters:
      name - name of ID generator
      idGenerator - ID generator
    • remove

      IdGenerator remove(String name)
      remove ID generator by name.
      Parameters:
      name - name of ID generator
      Returns:
      Previous ID generator
    • clear

      void clear()
      clear all ID generator.
    • entries

    • getAll

      get all ID generator.
      Returns:
      all ID generator