Coverage Report - org.apache.commons.clazz.reflect.extended.ExtendedReflectedClazz
 
Classes in this File Line Coverage Branch Coverage Complexity
ExtendedReflectedClazz
0%
0/8
N/A
1
 
 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.clazz.reflect.extended;
 17  
 
 18  
 import org.apache.commons.clazz.ClazzLoader;
 19  
 import org.apache.commons.clazz.reflect.ReflectedClazz;
 20  
 import org.apache.commons.clazz.reflect.ReflectedInstanceFactoryIntrospector;
 21  
 import org.apache.commons.clazz.reflect.ReflectedOperationIntrospector;
 22  
 import org.apache.commons.clazz.reflect.ReflectedPropertyIntrospector;
 23  
 import org.apache.commons.clazz.reflect.common.*;
 24  
 
 25  
 /**
 26  
  * 
 27  
  * @author <a href="mailto:dmitri@apache.org">Dmitri Plotnikov</a>
 28  
  * @version $Id: ExtendedReflectedClazz.java 155436 2005-02-26 13:17:48Z dirkv $
 29  
  */
 30  
 public class ExtendedReflectedClazz extends ReflectedClazz {
 31  
 
 32  
     /**
 33  
      * The extended list of introspectors consists of List, Mapped and Scalar
 34  
      * property introspectors.
 35  
      */
 36  
     protected static final 
 37  0
             ReflectedPropertyIntrospector[] PROPERTY_INTROSPECTORS =
 38  
         new ReflectedPropertyIntrospector[] {
 39  
             new ExtendedReflectedListPropertyIntrospector(),
 40  
             new ReflectedMappedPropertyIntrospector(),
 41  
             new ReflectedScalarPropertyIntrospector() };
 42  
 
 43  
     /**
 44  
      * The extended list of introspectors consists just the basic method-to-
 45  
      * operation introspector.
 46  
      */
 47  
     public static final
 48  0
             ReflectedOperationIntrospector[] OPERATION_INTROSPECTORS =
 49  
         new ReflectedOperationIntrospector[] {
 50  
             new ReflectedMethodOperationIntrospector()
 51  
         };
 52  
         
 53  
     /**
 54  
      * The extended list of introspectors consists of the basic constructor-to-
 55  
      * factory introspector as well as an introspector that discovers static
 56  
      * methods without parameters and returning the class itself.
 57  
      */
 58  
     public static final
 59  0
         ReflectedInstanceFactoryIntrospector[] INSTANCE_FACTORY_INTROSPECTORS =
 60  
         new ReflectedInstanceFactoryIntrospector[] {
 61  
             new ReflectedConstructorInstanceFactoryIntrospector(),
 62  
             new ReflectedMethodInstanceFactoryIntrospector()
 63  
         };
 64  
 
 65  
 
 66  
     /**
 67  
      * Constructor for ExtendedReflectedClazz.
 68  
      * @param loader
 69  
      * @param instanceClass
 70  
      */
 71  
     public ExtendedReflectedClazz(ClazzLoader loader, Class instanceClass) {
 72  0
         super(loader, instanceClass);
 73  0
     }
 74  
 
 75  
     protected ReflectedPropertyIntrospector[] getPropertyIntrospectors() {
 76  0
         return PROPERTY_INTROSPECTORS;
 77  
     }
 78  
 
 79  
     protected ReflectedOperationIntrospector[] getOperationIntrospectors() {
 80  0
         return OPERATION_INTROSPECTORS;
 81  
     }
 82  
 
 83  
     protected ReflectedInstanceFactoryIntrospector[] 
 84  
             getInstanceFactoryIntrospectors() 
 85  
     {
 86  0
         return INSTANCE_FACTORY_INTROSPECTORS;
 87  
     }
 88  
 
 89  
 }