Annotation Interface Bean
Annotation used to configure a bean. Typically used in conjunction with Factory.
@Factory
public class MyFactory {
@Bean
public MyBean myBean() {
// create the bean
}
}- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
-
Optional Element Summary
Optional Elements
-
Element Details
-
preDestroy
-
typed
Class<?>[] typed- Returns:
- Limits the types exposed by this been to the given type or types.
- Since:
- 3.0.0
- Default:
{}
-