You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mb...@apache.org on 2014/03/24 19:02:59 UTC

svn commit: r1580948 - /commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/interceptor/SwitchInterceptor.java

Author: mbenson
Date: Mon Mar 24 18:02:59 2014
New Revision: 1580948

URL: http://svn.apache.org/r1580948
Log:
format, edit javadoc; make CaseBuilder EDSL syntax class constructor private

Modified:
    commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/interceptor/SwitchInterceptor.java

Modified: commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/interceptor/SwitchInterceptor.java
URL: http://svn.apache.org/viewvc/commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/interceptor/SwitchInterceptor.java?rev=1580948&r1=1580947&r2=1580948&view=diff
==============================================================================
--- commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/interceptor/SwitchInterceptor.java (original)
+++ commons/proper/proxy/trunk/core/src/main/java/org/apache/commons/proxy2/interceptor/SwitchInterceptor.java Mon Mar 24 18:02:59 2014
@@ -28,10 +28,11 @@ import java.util.List;
 import java.util.concurrent.CopyOnWriteArrayList;
 
 /**
- * A {@link SwitchInterceptor} maintains a list of {@link org.apache.commons.proxy2.interceptor.matcher.InvocationMatcher}/{@link Interceptor} pairs.  Each
- * invocation will be checked against the registered InvocationMatchers.  If one matches the current invocation, then
- * the corresponding Interceptor will be called.  If no InvocationMatchers match, then the invocation will merely
- * {@link org.apache.commons.proxy2.Invocation#proceed()} method is called.
+ * A {@link SwitchInterceptor} maintains a list of
+ * {@link org.apache.commons.proxy2.interceptor.matcher.InvocationMatcher}/{@link Interceptor} pairs. Each invocation
+ * will be checked against the registered InvocationMatchers.  If one matches the current invocation, then the
+ * corresponding Interceptor will be called. If no InvocationMatchers match, the
+ * {@link org.apache.commons.proxy2.Invocation#proceed()} method is called with no interception.
  */
 public class SwitchInterceptor implements Interceptor, Serializable
 {
@@ -85,7 +86,7 @@ public class SwitchInterceptor implement
     {
         private final InvocationMatcher matcher;
 
-        public CaseBuilder(InvocationMatcher matcher)
+        private CaseBuilder(InvocationMatcher matcher)
         {
             this.matcher = matcher;
         }