Author: norman
Date: Fri Nov 18 17:41:14 2011
New Revision: 1203764

URL: http://svn.apache.org/viewvc?rev=1203764&view=rev
Log:
Replace tabs by spaces

Modified:
    
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractProtocolHandlerChain.java
    
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChain.java
    
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChainImpl.java

Modified: 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractProtocolHandlerChain.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractProtocolHandlerChain.java?rev=1203764&r1=1203763&r2=1203764&view=diff
==============================================================================
--- 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractProtocolHandlerChain.java
 (original)
+++ 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractProtocolHandlerChain.java
 Fri Nov 18 17:41:14 2011
@@ -30,13 +30,13 @@ import java.util.List;
  */
 public abstract class AbstractProtocolHandlerChain implements 
ProtocolHandlerChain{
 
-       /**
-        * Return an immutable List of all Handlers
-        * 
-        * @return handlerList
-        */
-       protected abstract List<ProtocolHandler> getHandlers();
-       
+    /**
+     * Return an immutable List of all Handlers
+     * 
+     * @return handlerList
+     */
+    protected abstract List<ProtocolHandler> getHandlers();
+
     /**
         * @see 
org.apache.james.protocols.api.handler.ProtocolHandlerChain#getHandlers(java.lang.Class)
         */

Modified: 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChain.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChain.java?rev=1203764&r1=1203763&r2=1203764&view=diff
==============================================================================
--- 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChain.java
 (original)
+++ 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChain.java
 Fri Nov 18 17:41:14 2011
@@ -36,6 +36,6 @@ public interface ProtocolHandlerChain {
      * @param type the type of handler we're interested in
      * @return a List of handlers
      */
-    abstract <T> LinkedList<T> getHandlers(Class<T> type);
+    <T> LinkedList<T> getHandlers(Class<T> type);
 
 }
\ No newline at end of file

Modified: 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChainImpl.java
URL: 
http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChainImpl.java?rev=1203764&r1=1203763&r2=1203764&view=diff
==============================================================================
--- 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChainImpl.java
 (original)
+++ 
james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/ProtocolHandlerChainImpl.java
 Fri Nov 18 17:41:14 2011
@@ -27,247 +27,247 @@ import java.util.List;
 import java.util.ListIterator;
 
 /**
- * {@link AbstractProtocolHandlerChain} which is mutable till the {@link 
#wireExtensibleHandlers()} is called. After that all operations
- * which try to modify the instance will throw and {@link 
UnsupportedOperationException}
+ * {@link AbstractProtocolHandlerChain} which is mutable till the
+ * {@link #wireExtensibleHandlers()} is called. After that all operations which
+ * try to modify the instance will throw and
+ * {@link UnsupportedOperationException}
+ * 
  * 
- *
  */
-public class ProtocolHandlerChainImpl extends AbstractProtocolHandlerChain 
implements List<ProtocolHandler>{
+public class ProtocolHandlerChainImpl extends AbstractProtocolHandlerChain 
implements List<ProtocolHandler> {
+
+    private final List<ProtocolHandler> handlers = new 
ArrayList<ProtocolHandler>();
+    private volatile boolean readyOnly = false;
+
+    /**
+     * Once this is called all tries to modify this
+     * {@link ProtocolHandlerChainImpl} will throw an
+     * {@link UnsupportedOperationException}
+     */
+    @Override
+    public void wireExtensibleHandlers() throws WiringException {
+        super.wireExtensibleHandlers();
+        readyOnly = true;
+    }
+
+    protected final boolean isReadyOnly() {
+        return readyOnly;
+    }
+
+    public boolean add(ProtocolHandler handler) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return handlers.add(handler);
+    }
+
+    @Override
+    protected List<ProtocolHandler> getHandlers() {
+        return Collections.unmodifiableList(handlers);
+    }
+
+    @Override
+    public int size() {
+        return handlers.size();
+    }
+
+    @Override
+    public boolean isEmpty() {
+        return handlers.isEmpty();
+    }
+
+    @Override
+    public boolean contains(Object o) {
+        return handlers.contains(o);
+    }
+
+    @Override
+    public Iterator<ProtocolHandler> iterator() {
+        return new ProtocolHandlerIterator(handlers.listIterator());
+    }
+
+    @Override
+    public Object[] toArray() {
+        return handlers.toArray();
+    }
+
+    @Override
+    public <T> T[] toArray(T[] a) {
+        return handlers.toArray(a);
+    }
+
+    @Override
+    public boolean remove(Object o) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return handlers.remove(o);
+    }
+
+    @Override
+    public boolean containsAll(Collection<?> c) {
+        return handlers.containsAll(c);
+    }
+
+    @Override
+    public boolean addAll(Collection<? extends ProtocolHandler> c) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return handlers.addAll(c);
+    }
+
+    @Override
+    public boolean addAll(int index, Collection<? extends ProtocolHandler> c) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return handlers.addAll(index, c);
+    }
+
+    @Override
+    public boolean removeAll(Collection<?> c) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return handlers.removeAll(c);
+    }
+
+    @Override
+    public boolean retainAll(Collection<?> c) {
+        return handlers.retainAll(c);
+    }
+
+    @Override
+    public void clear() {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        handlers.clear();
+    }
+
+    @Override
+    public ProtocolHandler get(int index) {
+        return (ProtocolHandler) handlers.get(index);
+    }
+
+    @Override
+    public ProtocolHandler set(int index, ProtocolHandler element) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return (ProtocolHandler) handlers.set(index, element);
+    }
+
+    @Override
+    public void add(int index, ProtocolHandler element) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        handlers.add(index, element);
+    }
+
+    @Override
+    public ProtocolHandler remove(int index) {
+        if (readyOnly) {
+            throw new UnsupportedOperationException("Ready-only");
+        }
+        return (ProtocolHandler) handlers.remove(index);
+    }
+
+    @Override
+    public int indexOf(Object o) {
+        return handlers.indexOf(o);
+    }
+
+    @Override
+    public int lastIndexOf(Object o) {
+        return handlers.lastIndexOf(o);
+    }
+
+    @Override
+    public ListIterator<ProtocolHandler> listIterator() {
+        return new ProtocolHandlerIterator(handlers.listIterator());
+    }
+
+    @Override
+    public ListIterator<ProtocolHandler> listIterator(int index) {
+        return new ProtocolHandlerIterator(handlers.listIterator(index));
+    }
+
+    @Override
+    public List<ProtocolHandler> subList(int fromIndex, int toIndex) {
+        List<ProtocolHandler> sList = new ArrayList<ProtocolHandler>();
+        for (Object handler : handlers.subList(fromIndex, toIndex)) {
+            sList.add((ProtocolHandler) handler);
+        }
+        if (readyOnly) {
+            return Collections.unmodifiableList(sList);
+        }
+        return sList;
+    }
+
+    private final class ProtocolHandlerIterator implements 
ListIterator<ProtocolHandler> {
+        private final ListIterator<ProtocolHandler> handlers;
+
+        public ProtocolHandlerIterator(ListIterator<ProtocolHandler> handlers) 
{
+            this.handlers = handlers;
+        }
+
+        @Override
+        public boolean hasNext() {
+            return handlers.hasNext();
+        }
+
+        @Override
+        public ProtocolHandler next() {
+            return (ProtocolHandler) handlers.next();
+        }
+
+        @Override
+        public boolean hasPrevious() {
+            return handlers.hasPrevious();
+        }
+
+        @Override
+        public ProtocolHandler previous() {
+            return handlers.previous();
+        }
+
+        @Override
+        public int nextIndex() {
+            return handlers.nextIndex();
+        }
+
+        @Override
+        public int previousIndex() {
+            return handlers.previousIndex();
+        }
+
+        @Override
+        public void remove() {
+            if (readyOnly) {
+                throw new UnsupportedOperationException("Ready-only");
+            }
+            handlers.previousIndex();
+        }
+
+        @Override
+        public void set(ProtocolHandler e) {
+            if (readyOnly) {
+                throw new UnsupportedOperationException("Ready-only");
+            }
+            handlers.set(e);
+        }
+
+        @Override
+        public void add(ProtocolHandler e) {
+            if (readyOnly) {
+                throw new UnsupportedOperationException("Ready-only");
+            }
+            handlers.add(e);
+        }
 
-       private final List<ProtocolHandler> handlers = new 
ArrayList<ProtocolHandler>();
-       private volatile boolean readyOnly = false;
-       
-       
-       /**
-        * Once this is called all tries to modify this {@link 
ProtocolHandlerChainImpl} will throw an {@link UnsupportedOperationException}
-        */
-       @Override
-       public void wireExtensibleHandlers() throws WiringException {
-               super.wireExtensibleHandlers();
-               readyOnly = true;
-       }
-
-       protected final boolean isReadyOnly() {
-               return readyOnly;
-       }
-       
-       public boolean add(ProtocolHandler handler) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return handlers.add(handler);
-       }
-       
-       @Override
-       protected List<ProtocolHandler> getHandlers() {
-               if (!readyOnly) {
-                       throw new IllegalStateException("wireExtensibleHandler 
must be called first!");
-               }
-               return Collections.unmodifiableList(handlers);
-       }
-
-       @Override
-       public int size() {
-               return handlers.size();
-       }
-
-       @Override
-       public boolean isEmpty() {
-               return handlers.isEmpty();
-       }
-
-       @Override
-       public boolean contains(Object o) {
-               return handlers.contains(o);
-       }
-
-       @Override
-       public Iterator<ProtocolHandler> iterator() {
-               return new ProtocolHandlerIterator(handlers.listIterator());
-       }
-
-       @Override
-       public Object[] toArray() {
-               return handlers.toArray();
-       }
-
-       @Override
-       public <T> T[] toArray(T[] a) {
-               return handlers.toArray(a);
-       }
-
-       @Override
-       public boolean remove(Object o) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return handlers.remove(o);
-       }
-
-       @Override
-       public boolean containsAll(Collection<?> c) {
-               return handlers.containsAll(c);
-       }
-
-       @Override
-       public boolean addAll(Collection<? extends ProtocolHandler> c) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return handlers.addAll(c);
-       }
-
-       @Override
-       public boolean addAll(int index, Collection<? extends ProtocolHandler> 
c) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return handlers.addAll(index, c);
-       }
-
-       @Override
-       public boolean removeAll(Collection<?> c) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return handlers.removeAll(c);
-       }
-
-       @Override
-       public boolean retainAll(Collection<?> c) {
-               return handlers.retainAll(c);
-       }
-
-       @Override
-       public void clear() {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               handlers.clear();
-       }
-
-       @Override
-       public ProtocolHandler get(int index) {
-               return (ProtocolHandler) handlers.get(index);
-       }
-
-       @Override
-       public ProtocolHandler set(int index, ProtocolHandler element) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return (ProtocolHandler) handlers.set(index, element);
-       }
-
-       @Override
-       public void add(int index, ProtocolHandler element) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               handlers.add(index, element);
-       }
-
-       @Override
-       public ProtocolHandler remove(int index) {
-               if (readyOnly) {
-                       throw new UnsupportedOperationException("Ready-only");
-               }
-               return (ProtocolHandler) handlers.remove(index);
-       }
-
-       @Override
-       public int indexOf(Object o) {
-               return handlers.indexOf(o);
-       }
-
-       @Override
-       public int lastIndexOf(Object o) {
-               return handlers.lastIndexOf(o);
-       }
-
-       @Override
-       public ListIterator<ProtocolHandler> listIterator() {
-               return new ProtocolHandlerIterator(handlers.listIterator());
-       }
-
-       @Override
-       public ListIterator<ProtocolHandler> listIterator(int index) {
-               return new 
ProtocolHandlerIterator(handlers.listIterator(index));
-       }
-
-       @Override
-       public List<ProtocolHandler> subList(int fromIndex, int toIndex) {
-               List<ProtocolHandler> sList = new ArrayList<ProtocolHandler>();
-               for (Object handler: handlers.subList(fromIndex, toIndex)) {
-                       sList.add((ProtocolHandler) handler);
-               }
-               if (readyOnly) {
-                       return Collections.unmodifiableList(sList);
-               }
-               return sList;
-       }
-       
-       private final class ProtocolHandlerIterator implements 
ListIterator<ProtocolHandler> {
-               private final ListIterator<ProtocolHandler> handlers;
-
-               public ProtocolHandlerIterator(ListIterator<ProtocolHandler> 
handlers) {
-                       this.handlers = handlers;
-               }
-               
-               @Override
-               public boolean hasNext() {
-                       return handlers.hasNext();
-               }
-
-               @Override
-               public ProtocolHandler next() {
-                       return (ProtocolHandler) handlers.next();
-               }
-
-               @Override
-               public boolean hasPrevious() {
-                       return handlers.hasPrevious();
-               }
-
-               @Override
-               public ProtocolHandler previous() {
-                       return handlers.previous();
-               }
-
-               @Override
-               public int nextIndex() {
-                       return handlers.nextIndex();
-               }
-
-               @Override
-               public int previousIndex() {
-                       return handlers.previousIndex();
-               }
-
-               @Override
-               public void remove() {
-                       if (readyOnly) {
-                               throw new 
UnsupportedOperationException("Ready-only");
-                       }
-                       handlers.previousIndex();
-               }
-
-               @Override
-               public void set(ProtocolHandler e) {
-                       if (readyOnly) {
-                               throw new 
UnsupportedOperationException("Ready-only");
-                       }
-                       handlers.set(e);
-               }
-
-               @Override
-               public void add(ProtocolHandler e) {
-                       if (readyOnly) {
-                               throw new 
UnsupportedOperationException("Ready-only");
-                       }
-                       handlers.add(e);
-               }
-               
-       }
+    }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to