Coverage Report - org.apache.myfaces.el.unified.FacesELContext
 
Classes in this File Line Coverage Branch Coverage Complexity
FacesELContext
0%
0/11
N/A
1
 
 1  
 /*
 2  
  * Licensed to the Apache Software Foundation (ASF) under one
 3  
  * or more contributor license agreements.  See the NOTICE file
 4  
  * distributed with this work for additional information
 5  
  * regarding copyright ownership.  The ASF licenses this file
 6  
  * to you under the Apache License, Version 2.0 (the
 7  
  * "License"); you may not use this file except in compliance
 8  
  * with the License.  You may obtain a copy of the License at
 9  
  *
 10  
  *   http://www.apache.org/licenses/LICENSE-2.0
 11  
  *
 12  
  * Unless required by applicable law or agreed to in writing,
 13  
  * software distributed under the License is distributed on an
 14  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  * KIND, either express or implied.  See the License for the
 16  
  * specific language governing permissions and limitations
 17  
  * under the License.
 18  
  */
 19  
 package org.apache.myfaces.el.unified;
 20  
 
 21  
 import javax.el.ELContext;
 22  
 import javax.el.ELResolver;
 23  
 import javax.el.FunctionMapper;
 24  
 import javax.el.VariableMapper;
 25  
 import javax.faces.context.FacesContext;
 26  
 
 27  
 /**
 28  
  * ELContext used for JSF.
 29  
  *
 30  
  * @author Stan Silvert
 31  
  */
 32  
 public class FacesELContext extends ELContext {
 33  
     
 34  
     private ELResolver _elResolver;
 35  
     private FunctionMapper _functionMapper;
 36  
     private VariableMapper _variableMapper;
 37  
     
 38  
     public FacesELContext(ELResolver elResolver,
 39  0
                           FacesContext facesContext) {
 40  0
         this._elResolver = elResolver;
 41  0
         putContext(FacesContext.class, facesContext);
 42  
         
 43  
         // TODO: decide if we need to implement our own FunctionMapperImpl and
 44  
         //       VariableMapperImpl instead of relying on Tomcat's version.
 45  
         //this.functionMapper = new FunctionMapperImpl();
 46  
         //this.variableMapper = new VariableMapperImpl();
 47  0
     }
 48  
     
 49  
     public VariableMapper getVariableMapper() {
 50  0
         return _variableMapper;
 51  
     }
 52  
 
 53  
     public void setVariableMapper(VariableMapper varMapper) {
 54  0
         _variableMapper = varMapper;
 55  0
     }
 56  
 
 57  
     public FunctionMapper getFunctionMapper() {
 58  0
         return _functionMapper;
 59  
     }
 60  
 
 61  
     public void setFunctionMapper(FunctionMapper functionMapper) {
 62  0
         _functionMapper = functionMapper;
 63  0
     }
 64  
 
 65  
     public ELResolver getELResolver() {
 66  0
         return _elResolver;
 67  
     }
 68  
     
 69  
 }