Class RqueueRedisConfigImportSelector

java.lang.Object
com.github.sonus21.rqueue.spring.RqueueRedisConfigImportSelector
All Implemented Interfaces:
org.springframework.context.annotation.ImportSelector

public class RqueueRedisConfigImportSelector extends Object implements org.springframework.context.annotation.ImportSelector
Conditionally imports RqueueRedisListenerConfig only when the rqueue-redis module is on the classpath. A direct @Import(RqueueRedisListenerConfig.class) would cause Spring to read the class bytecode before any @Conditional can fire, throwing FileNotFoundException when the module is excluded.
  • Constructor Details

    • RqueueRedisConfigImportSelector

      public RqueueRedisConfigImportSelector()
  • Method Details

    • selectImports

      public String[] selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata)
      Specified by:
      selectImports in interface org.springframework.context.annotation.ImportSelector