-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathExampleConfig.java
More file actions
29 lines (24 loc) · 1002 Bytes
/
ExampleConfig.java
File metadata and controls
29 lines (24 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.example.app;
import lombok.Data;
import org.gwizard.healthchecks.HealthChecksConfig;
import org.gwizard.hibernate.DatabaseConfig;
import org.gwizard.logging.LoggingConfig;
import org.gwizard.swagger.SwaggerConfig;
import org.gwizard.web.WebConfig;
/**
* Your configuration class can be any POJO, and there's nothing special about
* the property names - although we recommend sticking to these standards.
* Your Guice module will need to @Provide the relevant config classes for
* logging, web, database, etc, and this is where they should come from.
*/
@Data
public class ExampleConfig {
/** A bit of configuration for your own app */
private String foo;
/** Some standard bits of configuration */
private LoggingConfig logging = new LoggingConfig();
private WebConfig web = new WebConfig();
private DatabaseConfig database = new DatabaseConfig();
private HealthChecksConfig healthChecks = new HealthChecksConfig();
private SwaggerConfig swagger = new SwaggerConfig();
}