-
@Target({FIELD,METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface TypedRestricts the bean types of a bean. May be applied to a bean class or producer method or field.
@Typed(Shop.class) public class BookShop extends Business implements Shop<Book> { ... }When a
@Typedannotation is specified, only the types whose classes are explicitly listed using thevaluemember, along withObject, are bean types of the bean.- Author:
- Pete Muir, Gavin King
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<?>[]valueSelects the bean types of the bean.
-