Restricts 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 @Typed annotation is specified, only the types whose classes are explicitly listed using the
value member, along with java.lang.Object, are bean types of the bean.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Typed.Literal
Supports inline instantiation of the |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: the classes corresponding to the bean types of the beanSelects the bean types of the bean. |
| value | back to summary |
|---|---|
| public Class Selects the bean types of the bean. Every class must correspond to a type in the unrestricted set of bean types of a bean.
| |
Typed annotation.
| Modifier and Type | Field and Description |
|---|---|
| public static final Typed. | |
| private static final long | |
| private final Class |
| Modifier and Type | Method and Description |
|---|---|
| public static Typed. | |
| public Class |
| INSTANCE | back to summary |
|---|---|
| public static final Typed. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| value | back to summary |
|---|---|
| private final Class<?>[] value | |
| Literal | back to summary |
|---|---|
| private Literal(Class<?>[] value) | |
| of | back to summary |
|---|---|
| public static Typed. | |
| value | back to summary |
|---|---|
| public Class Implements javax. Doc from javax. Selects the bean types of the bean. Every class must correspond to a type in the unrestricted set of bean types of a bean.
| |