-
Notifications
You must be signed in to change notification settings - Fork 78
/
AppArchiveConfig.java
66 lines (47 loc) · 1.86 KB
/
AppArchiveConfig.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package jakarta.enterprise.inject.build.compatible.spi;
import jakarta.enterprise.lang.model.types.Type;
import java.lang.annotation.Annotation;
import java.util.function.Consumer;
// TODO remove entirely, if we remove AppArchive/AppDeployment
// TODO maybe AppArchiveConfig shouldn't extend AppArchive, and *ConfigQuery shouldn't extend *Query
public interface AppArchiveConfig extends AppArchive {
@Override
ClassConfigQuery classes();
@Override
MethodConfigQuery constructors(); // no static initializers
@Override
MethodConfigQuery methods(); // no constructors nor static initializers
@Override
FieldConfigQuery fields();
interface ClassConfigQuery extends ClassQuery {
@Override
ClassConfigQuery exactly(Class<?> clazz);
@Override
ClassConfigQuery subtypeOf(Class<?> clazz);
@Override
ClassConfigQuery annotatedWith(Class<? extends Annotation> annotationType);
void configure(Consumer<ClassConfig<?>> consumer);
}
interface MethodConfigQuery extends MethodQuery {
@Override
MethodConfigQuery declaredOn(ClassQuery classes);
@Override
MethodConfigQuery withReturnType(Class<?> type);
@Override
MethodConfigQuery withReturnType(Type type);
@Override
MethodConfigQuery annotatedWith(Class<? extends Annotation> annotationType);
void configure(Consumer<MethodConfig<?>> consumer);
}
interface FieldConfigQuery extends FieldQuery {
@Override
FieldConfigQuery declaredOn(ClassQuery classes);
@Override
FieldConfigQuery ofType(Class<?> type);
@Override
FieldConfigQuery ofType(Type type);
@Override
FieldConfigQuery annotatedWith(Class<? extends Annotation> annotationType);
void configure(Consumer<FieldConfig<?>> consumer);
}
}