public static enum Provides.DisposalHandledBy extends Enum<Provides.DisposalHandledBy>
| Enum Constant and Description |
|---|
PROVIDED_INSTANCE
The instance of the service that is provided is responsible for its own
disposal.
|
PROVIDER
The instance or class that provides the service — the one declaring
the method annotated with
Provides — is responsible for the
disposal of instances of the provided service. |
| Modifier and Type | Method and Description |
|---|---|
static Provides.DisposalHandledBy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Provides.DisposalHandledBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Provides.DisposalHandledBy PROVIDED_INSTANCE
Provides.disposeMethod() names a non-static, zero-parameter,
public method of the provided service type.public static final Provides.DisposalHandledBy PROVIDER
Provides — is responsible for the
disposal of instances of the provided service. Provides.disposeMethod()
names a public method of the providing class where the type of the first
parameter is a supertype of the provided service type. The remaining
parameters are injection points for other services.public static Provides.DisposalHandledBy[] values()
for (Provides.DisposalHandledBy c : Provides.DisposalHandledBy.values()) System.out.println(c);
public static Provides.DisposalHandledBy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2009–2021 Oracle Corporation. All rights reserved.