Class CosIdGeneratorRegistrar.GeneratorBean<T>

java.lang.Object
me.ahoo.cosid.spring.autoconfigure.CosIdGeneratorRegistrar.GeneratorBean<T>
Type Parameters:
T - the bean type: IdGenerator, PartsIdGenerator, GroupedIdGenerator or UuidV7Generator
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<T>
Enclosing class:
CosIdGeneratorRegistrar

public static final class CosIdGeneratorRegistrar.GeneratorBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<T>
The bean of one generator: the runtime's view of it by the bean type, which counts the ids when cosid.metrics.generated.enabled is on. A disabled generator's bean throws GeneratorDisabledException on each call (D24).
  • Field Summary

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeneratorBean(me.ahoo.cosid.runtime.CosIdRuntime runtime, String name, Class<T> type)
    A generator bean.
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.beans.factory.FactoryBean

    isSingleton
  • Constructor Details

    • GeneratorBean

      public GeneratorBean(me.ahoo.cosid.runtime.CosIdRuntime runtime, String name, Class<T> type)
      A generator bean.
      Parameters:
      runtime - the runtime
      name - the generator name
      type - the bean type
  • Method Details

    • getObject

      public T getObject()
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<T>
    • getObjectType

      public Class<T> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<T>