@ConfigProperties(prefix = "server")
@Dependent
public class MyServer {
public String host; // maps the property name server.host
public int port; // maps to the property name server.port
private String context; // maps to the property name server.context
@ConfigProperty(name = "old.location")
public String location; // maps to the property name server.old.location
public String getContext() {
return context;
}
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | ConfigProperties.
Support inline instantiation of the |
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| UNCONFIGURED_PREFIX | back to summary |
|---|---|
| public static final String UNCONFIGURED_PREFIX | |
| prefix | back to summary |
|---|---|
| public String prefix() The prefix of the configuration properties.
| |
ConfigProperties qualifier.
| Modifier and Type | Field and Description |
|---|---|
| public static final ConfigProperties. | |
| private final String | |
| private static final long |
| Modifier and Type | Method and Description |
|---|---|
| public static ConfigProperties. | |
| public String | prefix()
Implements org. The prefix of the configuration properties. |
| NO_PREFIX | back to summary |
|---|---|
| public static final ConfigProperties. | |
| prefix | back to summary |
|---|---|
| private final String prefix | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| Literal | back to summary |
|---|---|
| private Literal(String prefix) | |
| of | back to summary |
|---|---|
| public static ConfigProperties. | |
| prefix | back to summary |
|---|---|
| public String prefix() Implements org. Doc from org. The prefix of the configuration properties. | |