Coverage Report - org.apache.commons.clazz.reflect.standard.StandardReflectedClazz
 
Classes in this File Line Coverage Branch Coverage Complexity
StandardReflectedClazz
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.standard;
 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: StandardReflectedClazz.java 155436 2005-02-26 13:17:48Z dirkv $
 29  
  */
 30  
 public class StandardReflectedClazz extends ReflectedClazz {
 31  
 
 32  
     /**
 33  
      * The standard list of introspectors consists of Indexed and Scalar
 34  
      * property introspectors.
 35  
      */
 36  
     public static final 
 37  0
             ReflectedPropertyIntrospector[] PROPERTY_INTROSPECTORS =
 38  
         new ReflectedPropertyIntrospector[] {
 39  
             new StandardReflectedListPropertyIntrospector(),
 40  
             new ReflectedScalarPropertyIntrospector() };
 41  
 
 42  
     /**
 43  
      * The standard list of introspectors consists just the basic method-to-
 44  
      * operation introspector.
 45  
      */
 46  
     public static final
 47  0
             ReflectedOperationIntrospector[] OPERATION_INTROSPECTORS =
 48  
         new ReflectedOperationIntrospector[] {
 49  
             new ReflectedMethodOperationIntrospector()
 50  
         };
 51  
 
 52  
     /**
 53  
      * The standard list of introspectors consists just the basic constructor-
 54  
      * to-factory introspector.
 55  
      */
 56  
     public static final
 57  0
         ReflectedInstanceFactoryIntrospector[] INSTANCE_FACTORY_INTROSPECTORS =
 58  
         new ReflectedInstanceFactoryIntrospector[] {
 59  
             new ReflectedConstructorInstanceFactoryIntrospector(),
 60  
             new ReflectedMethodInstanceFactoryIntrospector()
 61  
         };
 62  
 
 63  
     /**
 64  
      * Constructor for StandardReflectedClazz.
 65  
      */
 66  
     public StandardReflectedClazz(ClazzLoader loader, Class instanceClass) {
 67  0
         super(loader, instanceClass);
 68  0
     }
 69  
 
 70  
     protected ReflectedPropertyIntrospector[] getPropertyIntrospectors() {
 71  0
         return PROPERTY_INTROSPECTORS;
 72  
     }
 73  
 
 74  
     protected ReflectedOperationIntrospector[] getOperationIntrospectors() {
 75  0
         return OPERATION_INTROSPECTORS;
 76  
     }
 77  
 
 78  
     protected ReflectedInstanceFactoryIntrospector[] 
 79  
             getInstanceFactoryIntrospectors() 
 80  
     {
 81  0
         return INSTANCE_FACTORY_INTROSPECTORS;
 82  
     }
 83  
 }