public interface DeterminableImports
ImportSelector
and
ImportBeanDefinitionRegistrar
implementations when they can determine imports
early. The ImportSelector
and ImportBeanDefinitionRegistrar
interfaces
are quite flexible which can make it hard to tell exactly what bean definitions they
will add. This interface should be used when an implementation consistently results in
the same imports, given the same source.
Using DeterminableImports
is particularly useful when working with Spring's
testing support. It allows for better generation of ApplicationContext
cache
keys.
Modifier and Type | Method and Description |
---|---|
Set<Object> |
determineImports(AnnotationMetadata metadata)
Return a set of objects that represent the imports.
|
Set<Object> determineImports(AnnotationMetadata metadata)
Set
must implement a valid hashCode
and
equals
.
Imports from multiple DeterminableImports
instances may be combined by the
caller to create a complete set.
Unlike ImportSelector
and ImportBeanDefinitionRegistrar
any
Aware
callbacks will not be invoked before this method is called.
metadata
- the source meta-dataCopyright © 2017 Pivotal Software, Inc.. All rights reserved.