Indicates that a bean directly specializes another bean. May be applied to a bean class or producer method.
If a bean directly specializes a second bean, it inherits:
If the second bean has a name, the bean may not declare a name using @Named. Furthermore, the
bean must have all the bean types of the second bean.
If a bean is specialized by any enabled bean, the first bean is disabled.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Specializes.Literal
Supports inline instantiation of the |
Specializes annotation.
| Modifier and Type | Field and Description |
|---|---|
| public static final Specializes. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCE | back to summary |
|---|---|
| public static final Specializes. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides javax. | |
| Literal | back to summary |
|---|---|
| public Literal() | |