package io.spring.presentations.jcmm.yourown.v3; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.springframework.context.annotation.Import; import org.springframework.context.annotation.ImportSelector; /** * If you want to support annotations you need a level of indirection. Here we import * an {@link ImportSelector} so that we can access the attributes. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @Import(MyConfigImportBeanDefinitionRegistrar.class) public @interface EnableMyConfigV3 { public String value(); }