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 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
package info.magnolia.rest.registry; |
35 |
|
|
36 |
|
import info.magnolia.rest.EndpointDefinition; |
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 0 |
Complexity Density: - |
|
41 |
|
public class ConfiguredEndpointDefinition implements EndpointDefinition { |
42 |
|
|
43 |
|
public static final String PROPERTY_NAME_IMPLEMENTATION_CLASS = "implementationClass"; |
44 |
|
|
45 |
|
private String name; |
46 |
|
private boolean enabled = true; |
47 |
|
private Class<?> implementationClass; |
48 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
49 |
|
@Override... |
50 |
|
public String getName() { |
51 |
|
return name; |
52 |
|
} |
53 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
54 |
|
@Override... |
55 |
|
public boolean isEnabled() { |
56 |
|
return enabled; |
57 |
|
} |
58 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
59 |
|
public void setName(String name) {... |
60 |
|
this.name = name; |
61 |
|
} |
62 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
63 |
|
public void setEnabled(boolean enabled) {... |
64 |
|
this.enabled = enabled; |
65 |
|
} |
66 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
67 |
|
public Class<?> getImplementationClass() {... |
68 |
|
return implementationClass; |
69 |
|
} |
70 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
71 |
|
public void setImplementationClass(Class<?> implementationClass) {... |
72 |
|
this.implementationClass = implementationClass; |
73 |
|
} |
74 |
|
|
75 |
|
} |