@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,ANNOTATION_TYPE})
public @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 } }
Factory
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
preDestroy |