Coverage Report - org.seasar.uruma.container.cooldeploy.UrumaS2ContainerFactoryCoolConfigurator
 
Classes in this File Line Coverage Branch Coverage Complexity
UrumaS2ContainerFactoryCoolConfigurator
0%
0/9
0%
0/6
0
 
 1  
 /*
 2  
  * Copyright 2004-2008 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.uruma.container.cooldeploy;
 17  
 
 18  
 import org.seasar.framework.container.ExternalContext;
 19  
 import org.seasar.framework.container.ExternalContextComponentDefRegister;
 20  
 import org.seasar.framework.container.S2Container;
 21  
 import org.seasar.framework.container.factory.PathResolver;
 22  
 import org.seasar.framework.container.factory.S2ContainerFactory.DefaultConfigurator;
 23  
 import org.seasar.framework.container.factory.S2ContainerFactory.Provider;
 24  
 
 25  
 /**
 26  
  * Uruma COOL deploy用の
 27  
  * {@link org.seasar.framework.container.factory.S2ContainerFactory.Configurator}
 28  
  * です。<br />
 29  
  * 
 30  
  * @author y.sugigami
 31  
  * @see org.seasar.framework.container.factory.S2ContainerFactory.DefaultConfigurator
 32  
  * 
 33  
  */
 34  0
 public class UrumaS2ContainerFactoryCoolConfigurator extends
 35  
         DefaultConfigurator {
 36  
     /*
 37  
      * @see org.seasar.framework.container.factory.S2ContainerFactory$DefaultConfigurator#createProvider(org.seasar.framework.container.S2Container)
 38  
      */
 39  
     @Override
 40  
     protected Provider createProvider(final S2Container configurationContainer) {
 41  0
         UrumaS2ContainerFactoryCoolProvider provider = new UrumaS2ContainerFactoryCoolProvider();
 42  0
         if (configurationContainer.hasComponentDef(PathResolver.class)) {
 43  0
             provider.setPathResolver((PathResolver) configurationContainer
 44  
                     .getComponent(PathResolver.class));
 45  
         }
 46  0
         if (configurationContainer.hasComponentDef(ExternalContext.class)) {
 47  0
             provider
 48  
                     .setExternalContext((ExternalContext) configurationContainer
 49  
                             .getComponent(ExternalContext.class));
 50  
         }
 51  0
         if (configurationContainer
 52  
                 .hasComponentDef(ExternalContextComponentDefRegister.class)) {
 53  0
             provider
 54  
                     .setExternalContextComponentDefRegister((ExternalContextComponentDefRegister) configurationContainer
 55  
                             .getComponent(ExternalContextComponentDefRegister.class));
 56  
         }
 57  0
         return provider;
 58  
     }
 59  
 
 60  
 }