File tree 4 files changed +21
-5
lines changed
demo/src/main/java/io/asfjava/ui/demo
src/main/java/io/asfjava/ui/core
4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 5
5
import org .springframework .boot .web .servlet .ServletComponentScan ;
6
6
7
7
@ SpringBootApplication
8
+ /*
9
+ * The annotation below used to scan the servlet context loader added to the sf-java-ui library
10
+ * in order to initialize the library @ server startup
11
+ *
12
+ * */
8
13
@ ServletComponentScan (basePackages = { "io.asfjava.ui.core" })
9
14
public class DemoApplication {
10
15
public static void main (String [] args ) {
Original file line number Diff line number Diff line change 1
1
# release configuration
2
- # Sat Jul 15 19:03:53 CET 2017
2
+ # Fri Aug 25 14:13:50 CET 2017
3
3
scm.tagNameFormat =@{project.artifactId}-@{project.version}
4
- pushChanges =true
4
+ pushChanges =false
5
5
scm.url =scm\:git\:git@github.com\:JsonSchema-JavaUI/sf-java-ui.git
6
6
preparationGoals =clean verify
7
7
projectVersionPolicyId =default
Original file line number Diff line number Diff line change @@ -9,12 +9,11 @@ public class GeneratorFactoryInitializer implements ServletContextListener {
9
9
10
10
@ Override
11
11
public final void contextInitialized (final ServletContextEvent sce ) {
12
- GeneratorFactoryLoader .getInstance ().load ();
13
- SchemaDecoratorLoader .getInstance ().load ();
12
+ SFJavaUi .initialize ();
14
13
}
15
14
16
15
@ Override
17
16
public final void contextDestroyed (final ServletContextEvent sce ) {
18
- // to implement it
17
+ // to implement it
19
18
}
20
19
}
Original file line number Diff line number Diff line change
1
+ package io .asfjava .ui .core ;
2
+
3
+ public final class SFJavaUi {
4
+
5
+ public static void initialize (){
6
+ GeneratorFactoryLoader .getInstance ().load ();
7
+ SchemaDecoratorLoader .getInstance ().load ();
8
+ }
9
+
10
+ private SFJavaUi () {
11
+ }
12
+ }
You can’t perform that action at this time.
0 commit comments