Move ImportSelector.Context to a top-level class

Issue: SPR-8411, SPR-8494
This commit is contained in:
Chris Beams
2011-07-13 23:28:53 +00:00
parent 0c2a6395e7
commit c5463a2e52
6 changed files with 52 additions and 48 deletions

View File

@@ -21,6 +21,7 @@ import java.util.Map;
import org.springframework.aop.config.AopConfigUtils;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportSelectorContext;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.context.config.AdviceMode;
import org.springframework.core.type.AnnotationMetadata;
@@ -50,7 +51,7 @@ public class TransactionManagementConfigurationSelector implements ImportSelecto
* will also be added to the enclosing {@link BeanDefinitionRegistry} and escalated
* if necessary through the usual {@link AopConfigUtils} family of methods.
*/
public String[] selectImports(ImportSelector.Context context) {
public String[] selectImports(ImportSelectorContext context) {
AnnotationMetadata importingClassMetadata = context.getImportingClassMetadata();
BeanDefinitionRegistry registry = context.getBeanDefinitionRegistry();