File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed
demo/src/main/java/io/asfjava/ui/demo
src/main/java/io/asfjava/ui/core Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change 55import org .springframework .boot .web .servlet .ServletComponentScan ;
66
77@ 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+ * */
813@ ServletComponentScan (basePackages = { "io.asfjava.ui.core" })
914public class DemoApplication {
1015 public static void main (String [] args ) {
Original file line number Diff line number Diff line change 11# release configuration
2- # Sat Jul 15 19:03:53 CET 2017
2+ # Fri Aug 25 14:13:50 CET 2017
33scm.tagNameFormat =@{project.artifactId}-@{project.version}
4- pushChanges =true
4+ pushChanges =false
55scm.url =scm\:git\:git@github.com\:JsonSchema-JavaUI/sf-java-ui.git
66preparationGoals =clean verify
77projectVersionPolicyId =default
Original file line number Diff line number Diff line change @@ -9,12 +9,11 @@ public class GeneratorFactoryInitializer implements ServletContextListener {
99
1010 @ Override
1111 public final void contextInitialized (final ServletContextEvent sce ) {
12- GeneratorFactoryLoader .getInstance ().load ();
13- SchemaDecoratorLoader .getInstance ().load ();
12+ SFJavaUi .initialize ();
1413 }
1514
1615 @ Override
1716 public final void contextDestroyed (final ServletContextEvent sce ) {
18- // to implement it
17+ // to implement it
1918 }
2019}
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