Clover Coverage Report - XWiki Commons - Parent POM 4.0-SNAPSHOT (Aggregated)
Coverage timestamp: Mon Mar 12 2012 17:13:48 CET
../../../../img/srcFileCovDistChart0.png 69% of files have more coverage
5   69   5   1
0   32   1   5
5     1  
1    
 
  UnmodifiableCoreExtensionRepository       Line # 33 5 0% 5 10 0% 0.0
 
No Tests
 
1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.extension.unmodifiable;
21   
22    import java.util.Collection;
23   
24    import org.xwiki.extension.CoreExtension;
25    import org.xwiki.extension.repository.CoreExtensionRepository;
26   
27    /**
28    * Provide a readonly access to a core extension repository.
29    *
30    * @param <T>
31    * @version $Id: 2835a4204afcfd3415871a2022e1ca34aa34fcce $
32    */
 
33    public class UnmodifiableCoreExtensionRepository<T extends CoreExtensionRepository> extends
34    UnmodifiableExtensionRepository<T> implements CoreExtensionRepository
35    {
36    /**
37    * @param repository wrapped repository
38    */
 
39  0 toggle public UnmodifiableCoreExtensionRepository(T repository)
40    {
41  0 super(repository);
42    }
43   
44    // CoreExtensionRepository
45   
 
46  0 toggle @Override
47    public int countExtensions()
48    {
49  0 return getWrapped().countExtensions();
50    }
51   
 
52  0 toggle @Override
53    public Collection<CoreExtension> getCoreExtensions()
54    {
55  0 return UnmodifiableUtils.unmodifiableExtensions(getWrapped().getCoreExtensions());
56    }
57   
 
58  0 toggle @Override
59    public CoreExtension getCoreExtension(String id)
60    {
61  0 return UnmodifiableUtils.unmodifiableExtension(getWrapped().getCoreExtension(id));
62    }
63   
 
64  0 toggle @Override
65    public boolean exists(String id)
66    {
67  0 return getWrapped().exists(id);
68    }
69    }