@@ -35,24 +35,42 @@ static Builder newBuilder(Set<String> profiles, ConfigPropertyPlugin plugin, Lis
35
35
36
36
/**
37
37
* Return true if the bean should be created and registered with the context.
38
- * <p/ >
38
+ * <p>
39
39
* Returning false means there has been a supplied bean already registered and
40
40
* that we should skip the creation and registration for this bean.
41
41
*
42
42
* @param name The qualifier name
43
43
* @param types The types that the bean implements and provides
44
44
*/
45
- boolean isAddBeanFor (String name , Type ... types );
45
+ boolean isBeanAbsent (String name , Type ... types );
46
46
47
47
/**
48
48
* Return true if the bean should be created and registered with the context.
49
- * <p/ >
49
+ * <p>
50
50
* Returning false means there has been a supplied bean already registered and
51
51
* that we should skip the creation and registration for this bean.
52
52
*
53
53
* @param types The types that the bean implements and provides
54
54
*/
55
- boolean isAddBeanFor (Type ... types );
55
+ default boolean isBeanAbsent (Type ... types ) {
56
+ return isBeanAbsent (null , types );
57
+ }
58
+
59
+ /**
60
+ * @deprecated use {@link #isBeanAbsent(String, Type...)}
61
+ */
62
+ @ Deprecated (forRemoval = true )
63
+ default boolean isAddBeanFor (String name , Type ... types ) {
64
+ return isBeanAbsent (name , types );
65
+ }
66
+
67
+ /**
68
+ * @deprecated use {@link #isBeanAbsent(Type...)} instead
69
+ */
70
+ @ Deprecated (forRemoval = true )
71
+ default boolean isAddBeanFor (Type ... types ) {
72
+ return isBeanAbsent (types );
73
+ }
56
74
57
75
/**
58
76
* Register the next bean as having Primary priority.
0 commit comments