juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject juneau git commit: RestContext refactoring.
Date Sun, 07 Jan 2018 15:06:22 GMT
Repository: juneau
Updated Branches:
  refs/heads/master 94fa434bf -> c6ed47942


RestContext refactoring.

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

Branch: refs/heads/master
Commit: c6ed47942d2483ef5f2a9e6efdee275b5ab7f0a3
Parents: 94fa434
Author: JamesBognar <jamesbognar@apache.org>
Authored: Sun Jan 7 10:06:16 2018 -0500
Committer: JamesBognar <jamesbognar@apache.org>
Committed: Sun Jan 7 10:06:16 2018 -0500

----------------------------------------------------------------------
 .../apache/juneau/rest/RestContextBuilder.java  | 38 +++-----------------
 1 file changed, 4 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/juneau/blob/c6ed4794/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContextBuilder.java
----------------------------------------------------------------------
diff --git a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContextBuilder.java
b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContextBuilder.java
index c6c172a..40039b6 100644
--- a/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContextBuilder.java
+++ b/juneau-rest/juneau-rest-server/src/main/java/org/apache/juneau/rest/RestContextBuilder.java
@@ -1542,7 +1542,7 @@ public class RestContextBuilder extends BeanContextBuilder implements
ServletCon
 	 * @param parsers The parser classes to add to this config.
 	 * @return This object (for method chaining).
 	 */
-	public RestContextBuilder parsers(boolean append, Class<?>...parsers) {
+	public RestContextBuilder parsers(boolean append, Object...parsers) {
 		return set(append, REST_parsers, parsers);
 	}
 
@@ -1559,26 +1559,11 @@ public class RestContextBuilder extends BeanContextBuilder implements
ServletCon
 	 * @param parsers The parsers to add to this config.
 	 * @return This object (for method chaining).
 	 */
-	public RestContextBuilder parsers(Parser...parsers) {
+	public RestContextBuilder parsers(Object...parsers) {
 		return addTo(REST_parsers, parsers);
 	}
 
 	/**
-	 * Configuration property:  Parsers. 
-	 *
-	 * <p>
-	 * Same as {@link #parsers(Parser...)} except allows you to overwrite the previous value.
-	 * 
-	 * @param append
-	 * 	If <jk>true</jk>, append to the existing list, otherwise overwrite the previous
value. 
-	 * @param parsers The parsers to add to this config.
-	 * @return This object (for method chaining).
-	 */
-	public RestContextBuilder parsers(boolean append, Parser...parsers) {
-		return set(append, REST_parsers, parsers);
-	}
-
-	/**
 	 * Configuration property:  HTTP part parser. 
 	 *
 	 * <p>
@@ -1896,7 +1881,7 @@ public class RestContextBuilder extends BeanContextBuilder implements
ServletCon
 	 * @param serializers The serializer classes to add to this config.
 	 * @return This object (for method chaining).
 	 */
-	public RestContextBuilder serializers(boolean append, Class<?>...serializers) {
+	public RestContextBuilder serializers(boolean append, Object...serializers) {
 		return set(append, REST_serializers, serializers);
 	}
 
@@ -1913,26 +1898,11 @@ public class RestContextBuilder extends BeanContextBuilder implements
ServletCon
 	 * @param serializers The serializer to add to this config.
 	 * @return This object (for method chaining).
 	 */
-	public RestContextBuilder serializers(Serializer...serializers) {
+	public RestContextBuilder serializers(Object...serializers) {
 		return addTo(REST_serializers, serializers);
 	}
 
 	/**
-	 * Configuration property:  Serializers. 
-	 *
-	 * <p>
-	 * Same as {@link #serializers(Serializer...)} except allows you to overwrite the previous
value.
-	 * 
-	 * @param append
-	 * 	If <jk>true</jk>, append to the existing list, otherwise overwrite the previous
value. 
-	 * @param serializers The serializer to add to this config.
-	 * @return This object (for method chaining).
-	 */
-	public RestContextBuilder serializers(boolean append, Serializer...serializers) {
-		return set(append, REST_serializers, serializers);
-	}
-
-	/**
 	 * Configuration property:  Static file response headers. 
 	 *
 	 * <p>


Mime
View raw message