public abstract class AutoConfigurationPackages extends Object
Constructor and Description |
---|
AutoConfigurationPackages() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
get(BeanFactory beanFactory)
Return the auto-configuration base packages for the given bean factory.
|
static boolean |
has(BeanFactory beanFactory)
Determine if the auto-configuration base packages for the given bean factory are
available.
|
static void |
register(BeanDefinitionRegistry registry,
String... packageNames)
Programmatically registers the auto-configuration package names.
|
public static boolean has(BeanFactory beanFactory)
beanFactory
- the source bean factorypublic static List<String> get(BeanFactory beanFactory)
beanFactory
- the source bean factoryIllegalStateException
- if auto-configuration is not enabledpublic static void register(BeanDefinitionRegistry registry, String... packageNames)
BeanDefinitionRegistry
. Generally it's recommended that
you don't call this method directly, but instead rely on the default convention
where the package name is set from your @EnableAutoConfiguration
configuration class or classes.registry
- the bean definition registrypackageNames
- the package names to setCopyright © 2015 Pivotal Software, Inc.. All rights reserved.