Coverage report

  %line %branch
org.apache.commons.jexl.util.Introspector
100% 
100% 

 1  
 /*
 2  
  * Copyright 2002,2004 The Apache Software Foundation.
 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, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.apache.commons.jexl.util;
 17  
 
 18  
 import org.apache.commons.jexl.util.introspection.Uberspect;
 19  
 import org.apache.commons.jexl.util.introspection.UberspectImpl;
 20  
 import org.apache.commons.jexl.util.introspection.UberspectLoggable;
 21  
 import org.apache.commons.logging.Log;
 22  
 import org.apache.commons.logging.LogFactory;
 23  
 
 24  
 /**
 25  
  *  Little class to manage a Velocity uberspector (Vel 1.4+) for instrospective
 26  
  *  services
 27  
  *
 28  
  *  @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
 29  
  *  @version $Id: Introspector.java,v 1.6 2004/02/28 13:45:21 yoavs Exp $
 30  
  */
 31  22
 public class Introspector
 32  
 {
 33  
     /**
 34  
      *  the uberspector from Velocity - handles all instrospection patterns
 35  
      */
 36  
     private static Uberspect uberSpect;
 37  
 
 38  20
     static {
 39  
 
 40  38
         Log logger = LogFactory.getLog(Introspector.class);
 41  
 
 42  30
         uberSpect = new UberspectImpl();
 43  30
         ((UberspectLoggable) uberSpect).setRuntimeLogger(logger);
 44  8
     }
 45  
 
 46  
     /**
 47  
      *  For now, expose the raw uberspector to the AST
 48  
      */
 49  
     public static Uberspect getUberspect()
 50  
     {
 51  801
         return uberSpect;
 52  
     }
 53  
 }

This report is generated by jcoverage, Maven and Maven JCoverage Plugin.