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 void |
set(BeanDefinitionRegistry registry,
String... packageNames)
Programmatically set the auto-configuration package names.
|
public static List<String> get(BeanFactory beanFactory)
beanFactory
- the source bean factoryIllegalStateException
- if auto-configuration is not enabledpublic static void set(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.registry
- the bean definition registrypackageNames
- the pacakge names to setCopyright © 2014 Pivotal Software, Inc.. All rights reserved.