Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:networknt/light-4j into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed May 19, 2018
2 parents 331c506 + 49ca139 commit 9532450
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion config/src/main/java/com/networknt/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* another jar in the classpath to replace the default implementation.
*
* Config files are loaded in the following sequence:
* 1. resources/config folder for the default
* 1. resource/config folder for the default
* 2. externalized directory specified by light-4j-config-dir
*
* In docker, the config files should be in volume and any update will
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public static InstrumentedExecutorService newSingleThreadExecutor(
* thread will be created and added to the pool. Threads that have
* not been used for sixty seconds are terminated and removed from
* the cache. Thus, a pool that remains idle for long enough will
* not consume any resources. Note that pools with similar
* not consume any resource. Note that pools with similar
* properties but different details (for example, timeout parameters)
* may be created using {@link ThreadPoolExecutor} constructors.
*
Expand All @@ -230,7 +230,7 @@ public static InstrumentedExecutorService newCachedThreadPool(MetricRegistry reg
* thread will be created and added to the pool. Threads that have
* not been used for sixty seconds are terminated and removed from
* the cache. Thus, a pool that remains idle for long enough will
* not consume any resources. Note that pools with similar
* not consume any resource. Note that pools with similar
* properties but different details (for example, timeout parameters)
* may be created using {@link ThreadPoolExecutor} constructors.
*
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<module>common</module>
<module>email</module>
<module>server</module>
<module>resources</module>
<module>resource</module>
</modules>

<dependencyManagement>
Expand Down Expand Up @@ -286,7 +286,7 @@
</dependency>
<dependency>
<groupId>com.networknt</groupId>
<artifactId>resources</artifactId>
<artifactId>resource</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion resources/pom.xml → resource/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>resources</artifactId>
<artifactId>resource</artifactId>
<packaging>jar</packaging>
<description>Handler endpoints that will provide clients the ability to server static content.</description>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.networknt.resources;
package com.networknt.resource;

import io.undertow.server.handlers.resource.ResourceManager;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.networknt.resources;
package com.networknt.resource;

import io.undertow.server.handlers.builder.PredicatedHandler;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.networknt.resources;
package com.networknt.resource;

import io.undertow.server.handlers.PathHandler;
import io.undertow.server.handlers.builder.PredicatedHandler;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.networknt.server;

/**
* If you want close database connections, release the resources allocated
* If you want close database connections, release the resource allocated
* in the application before server shutdown, please implement this interface
* with a class and put it into your API project
* /src/main/resources/config/service.yml com.networknt.server.ShutdownHookProvider
* /src/main/resource/config/service.yml com.networknt.server.ShutdownHookProvider
*
* All shutdown hooks will be called during server shutdown so that resources can
* All shutdown hooks will be called during server shutdown so that resource can
* be released completely.
*
* @author Steve Hu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.networknt.server;

/**
* If you want initialize database connections, load some resources or cached data
* If you want initialize database connections, load some resource or cached data
* during server startup, please implement this interface with a class and put
* it into your API project /src/main/resources/config/service.yml com.networknt.server.StartupHookProvider
* it into your API project /src/main/resource/config/service.yml com.networknt.server.StartupHookProvider
* During server startup, these startup hooks will be called to initialize the server
* state.
*
Expand Down

0 comments on commit 9532450

Please sign in to comment.