Coverage Report - org.seasar.teeda.core.config.faces.element.impl.FactoryElementImpl
 
Classes in this File Line Coverage Branch Coverage Complexity
FactoryElementImpl
100%
18/18
N/A
1
 
 1  
 /*
 2  
  * Copyright 2004-2011 the Seasar Foundation and the Others.
 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,
 13  
  * either express or implied. See the License for the specific language
 14  
  * governing permissions and limitations under the License.
 15  
  */
 16  
 package org.seasar.teeda.core.config.faces.element.impl;
 17  
 
 18  
 import java.util.ArrayList;
 19  
 import java.util.List;
 20  
 
 21  
 import org.seasar.teeda.core.config.faces.element.FactoryElement;
 22  
 
 23  
 /**
 24  
  * @author shot
 25  
  * 
 26  
  */
 27  
 public class FactoryElementImpl implements FactoryElement {
 28  
 
 29  
     private List applicationFactories_;
 30  
 
 31  
     private List facesContextFactories_;
 32  
 
 33  
     private List lifecycleFactories_;
 34  
 
 35  
     private List renderKitFactories_;
 36  
 
 37  7
     public FactoryElementImpl() {
 38  7
         applicationFactories_ = new ArrayList();
 39  7
         facesContextFactories_ = new ArrayList();
 40  7
         lifecycleFactories_ = new ArrayList();
 41  7
         renderKitFactories_ = new ArrayList();
 42  7
     }
 43  
 
 44  
     public void addApplicationFactory(String applicationFactory) {
 45  7
         applicationFactories_.add(applicationFactory);
 46  7
     }
 47  
 
 48  
     public void addFacesContextFactory(String facesContextFactory) {
 49  5
         facesContextFactories_.add(facesContextFactory);
 50  5
     }
 51  
 
 52  
     public void addLifecycleFactory(String lifecycleFactory) {
 53  5
         lifecycleFactories_.add(lifecycleFactory);
 54  5
     }
 55  
 
 56  
     public void addRenderKitFactory(String renderKitFactory) {
 57  5
         renderKitFactories_.add(renderKitFactory);
 58  5
     }
 59  
 
 60  
     public List getApplicationFactories() {
 61  8
         return applicationFactories_;
 62  
     }
 63  
 
 64  
     public List getFacesContextFactories() {
 65  7
         return facesContextFactories_;
 66  
     }
 67  
 
 68  
     public List getLifecycleFactories() {
 69  7
         return lifecycleFactories_;
 70  
     }
 71  
 
 72  
     public List getRenderKitFactories() {
 73  7
         return renderKitFactories_;
 74  
     }
 75  
 
 76  
 }