Package com.github.sonus21.rqueue.spring
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.ImportSelector
getExclusionFilter
-
Constructor Details
-
RqueueRedisConfigImportSelector
public RqueueRedisConfigImportSelector()
-
-
Method Details
-
selectImports
public String[] selectImports(org.springframework.core.type.AnnotationMetadata importingClassMetadata) - Specified by:
selectImportsin interfaceorg.springframework.context.annotation.ImportSelector
-