If a parameter annotated with @TransientReference resolves to a dependent scoped bean, then the bean will be
destroyed after the invocation completes.
public class OrderManager {
@Inject
public OrderManager(@TransientReference Order order) {
...
}
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | TransientReference.Literal
Supports inline instantiation of the |
TransientReference annotation.
| Modifier and Type | Field and Description |
|---|---|
| public static final TransientReference. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCE | back to summary |
|---|---|
| public static final TransientReference. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| Literal | back to summary |
|---|---|
| public Literal() | |