Repository: incubator-juneau
Updated Branches:
  refs/heads/master e8803a1b7 -> 437c0f1a8


Add a public constructor on RestConfig.

Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau/commit/437c0f1a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau/tree/437c0f1a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau/diff/437c0f1a

Branch: refs/heads/master
Commit: 437c0f1a8fb9b922b82b5fbf350d78e57edd3392
Parents: e8803a1
Author: JamesBognar <[email protected]>
Authored: Fri Jul 14 14:10:52 2017 -0400
Committer: JamesBognar <[email protected]>
Committed: Fri Jul 14 14:10:52 2017 -0400

----------------------------------------------------------------------
 .../java/org/apache/juneau/rest/RestConfig.java     | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-juneau/blob/437c0f1a/juneau-rest/src/main/java/org/apache/juneau/rest/RestConfig.java
----------------------------------------------------------------------
diff --git a/juneau-rest/src/main/java/org/apache/juneau/rest/RestConfig.java 
b/juneau-rest/src/main/java/org/apache/juneau/rest/RestConfig.java
index 0a6c44e..0035714 100644
--- a/juneau-rest/src/main/java/org/apache/juneau/rest/RestConfig.java
+++ b/juneau-rest/src/main/java/org/apache/juneau/rest/RestConfig.java
@@ -130,6 +130,22 @@ public class RestConfig implements ServletConfig {
        Map<String,Widget> htmlWidgets = new HashMap<String,Widget>();
 
        /**
+        * Constructor for top-level servlets when using dependency injection.
+        *
+        * <p>
+        * Work-in-progress.
+        *
+        * @param config
+        *      The servlet config object we're extending.
+        * @param resourceClass
+        *      The class annotated with the {@link RestResource @RestResource} 
annotation.
+        * @throws ServletException
+        */
+       public RestConfig(ServletConfig config, Class<?> resourceClass) throws 
ServletException {
+               this(config, resourceClass, null);
+       }
+
+       /**
         * Constructor.
         *
         * @param config The servlet config passed into the servlet by the 
servlet container.

Reply via email to