Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({TYPE, METHOD})
public @interface ConditionalOnMissingBean
Constructs this bean only when no other bean has its type.
Decided entirely by the build, which sees every bean: a default implementation marked with this steps aside for one the application declares.
Without value, “its type” is every type the bean can be injected as
other than the JDK’s own – the class and its interfaces – so a
DefaultMailer implements Mailer steps aside for any other Mailer bean.
Methods
public abstract Class<?>[] value() default {} | The types whose presence makes this bean step aside, when the default set is too wide or too narrow. |
Method details
value
public abstract Class<?>[] value() default {}The types whose presence makes this bean step aside, when the default
set is too wide or too narrow.