Annotation Type Bean
A method of a Configuration class whose return value is a bean.
Its parameters are injected like a constructor's, and may carry Qualifier
or Value. A static @Bean method is called without constructing the
configuration class.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionA no-argument method of the returned object the build calls when the server stops.A no-argument method of the returned object the build calls once it is constructed and injected.The bean's name.
-
Element Details
-
value
-
initMethod
String initMethodA no-argument method of the returned object the build calls once it is constructed and injected. Empty for none.- Default:
""
-
destroyMethod
String destroyMethodA no-argument method of the returned object the build calls when the server stops. Empty for none.- Default:
""
-