-
Notifications
You must be signed in to change notification settings - Fork 5
/
GSApp.java
33 lines (24 loc) · 1.01 KB
/
GSApp.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
package org.genericsystem.reactor.gscomponents;
import org.genericsystem.reactor.modelproperties.SelectionDefaults;
import io.vertx.core.http.ServerWebSocket;
import java.lang.annotation.Annotation;
import org.genericsystem.reactor.Context;
import org.genericsystem.reactor.HtmlDomNode.RootHtmlDomNode;
import org.genericsystem.reactor.annotations.CustomAnnotations;
public class GSApp extends RootTagImpl implements SelectionDefaults {
public GSApp() {
createSelectionProperty();
}
@Override
public void beforeProcessAnnotations() {
super.beforeProcessAnnotations();
Annotation annotations = getClass().getAnnotation(CustomAnnotations.class);
if (annotations != null)
for (Class<? extends Annotation> annotation : ((CustomAnnotations) annotations).value())
getAnnotationsManager().registerAnnotation(annotation);
}
@Override
public RootHtmlDomNode init(Context rootModelContext, String rootId, ServerWebSocket webSocket) {
return new RootHtmlDomNode(rootModelContext, this, rootId, webSocket);
}
}