Clover coverage report - Maven Clover report
Coverage timestamp: Sun Jun 1 2008 19:59:48 EST
file stats: LOC: 47   Methods: 3
NCLOC: 20   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
BasicDispatcherContext.java - 20% 33.3% 25%
coverage coverage
 1    /**
 2    * Copyright 2007 The Apache Software Foundation
 3    *
 4    * Licensed under the Apache License, Version 2.0 (the "License");
 5    * you may not use this file except in compliance with the License.
 6    * You may obtain a copy of the License at
 7    *
 8    * http://www.apache.org/licenses/LICENSE-2.0
 9    *
 10    * Unless required by applicable law or agreed to in writing, software
 11    * distributed under the License is distributed on an "AS IS" BASIS,
 12    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13    * See the License for the specific language governing permissions and
 14    * limitations under the License.
 15    */
 16    package org.codehaus.wadi.group.impl;
 17   
 18    import java.util.HashMap;
 19    import java.util.Map;
 20   
 21    import org.codehaus.wadi.group.DispatcherContext;
 22   
 23   
 24    /**
 25    * @version $Revision: 1563 $
 26    */
 27    public class BasicDispatcherContext implements DispatcherContext {
 28   
 29    private final Map attributes;
 30   
 31  8 public BasicDispatcherContext() {
 32  8 attributes = new HashMap();
 33    }
 34   
 35  0 public Object getAttribute(Object key) {
 36  0 synchronized (attributes) {
 37  0 return attributes.get(key);
 38    }
 39    }
 40   
 41  0 public Object setAttribute(Object key, Object value) {
 42  0 synchronized (attributes) {
 43  0 return attributes.put(key, value);
 44    }
 45    }
 46   
 47    }