@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface ConditionalOnMissingBean
Conditional
that only matches when the specified bean classes and/or names are
not already contained in the BeanFactory
.Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Annotation>[] |
annotation
The annotation type decorating a bean that should be checked.
|
String[] |
name
The names of beans to check.
|
SearchStrategy |
search
Strategy to decide if the application context hierarchy (parent contexts) should be
considered.
|
Class<?>[] |
value
The class type of bean that should be checked.
|
public abstract Class<?>[] value
ApplicationContext
.public abstract Class<? extends Annotation>[] annotation
ApplicationContext
.public abstract String[] name
ApplicationContext
.public abstract SearchStrategy search
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.