Coverage Report - org.jtheque.core.managers.ManagerContainer
 
Classes in this File Line Coverage Branch Coverage Complexity
ManagerContainer
0 %
0/6
N/A
1
 
 1  
 package org.jtheque.core.managers;
 2  
 
 3  
 import javax.annotation.PostConstruct;
 4  
 import java.util.Map;
 5  
 
 6  
 /*
 7  
  * This file is part of JTheque.
 8  
  *            
 9  
  * JTheque is free software: you can redistribute it and/or modify
 10  
  * it under the terms of the GNU General Public License as published by
 11  
  * the Free Software Foundation, either version 3 of the License. 
 12  
  *
 13  
  * JTheque is distributed in the hope that it will be useful,
 14  
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 15  
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 16  
  * GNU General Public License for more details.
 17  
  *
 18  
  * You should have received a copy of the GNU General Public License
 19  
  * along with JTheque.  If not, see <http://www.gnu.org/licenses/>.
 20  
  */
 21  
 
 22  
 /**
 23  
  * A container for a list of managers.
 24  
  *
 25  
  * @author Baptiste Wicht
 26  
  */
 27  
 public final class ManagerContainer {
 28  
     private final Map<Class<?>, IManager> managers;
 29  
 
 30  
     /**
 31  
      * Construct a new ManagerContainer.
 32  
      *
 33  
      * @param managers The managers list.
 34  
      */
 35  0
     public ManagerContainer(Map<Class<?>, IManager> managers) {
 36  0
         this.managers = managers;
 37  0
     }
 38  
 
 39  
     /**
 40  
      * Return the managers.
 41  
      *
 42  
      * @return A List containing all the managers.
 43  
      */
 44  
     public Map<Class<?>, IManager> getManagers() {
 45  0
         return managers;
 46  
     }
 47  
 
 48  
     /**
 49  
      * Transfer the manager's list to the Managers class.
 50  
      */
 51  
     @PostConstruct
 52  
     public void transfer() {
 53  0
         Managers.loadManagers(this);
 54  0
     }
 55  
 }