org.jvnet.hk2.annotations.Service annotation
Any jakarta. or org.
annotation on the class marked with this annotation will also be copied to the
implementation. No other qualifier or annotation will be copied to the concrete
implementation. However, the org. annotation
on the stub class will be honored.
The methods generated into the subclass can either return null and fixed
values (for scalars) or can throw exceptions, depending on the
Stub. value of this annotation
Using this annotation is useful for testing, though it will work both with test code and non-test code
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public Stub. | Returns: The behavior of the generated methodsThis value determines what the generated methods do
If set to |
| value | back to summary |
|---|---|
| public Stub. This value determines what the generated methods do
If set to
If set to | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Stub. | EXCEPTIONS
The generated methods of this stub will throw an UnsupportedOperationException |
| public static final Stub. | VALUES
The generated methods of this stub will return null and fixed values |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Stub. | |
| public static Stub. |
| EXCEPTIONS | back to summary |
|---|---|
| public static final Stub. The generated methods of this stub will throw an UnsupportedOperationException | |
| VALUES | back to summary |
|---|---|
| public static final Stub. The generated methods of this stub will return null and fixed values | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static Stub. | |
| values | back to summary |
|---|---|
| public static Stub. | |