net.sf.morph.reflect.reflectors
Class ServletRequestReflector

java.lang.Object
  extended by net.sf.morph.reflect.reflectors.BaseReflector
      extended by net.sf.morph.reflect.reflectors.BaseCompositeReflector
          extended by net.sf.morph.reflect.reflectors.StubbornDelegatingReflector
              extended by net.sf.morph.reflect.reflectors.ServletRequestReflector
All Implemented Interfaces:
java.lang.Cloneable, net.sf.composite.Component, net.sf.composite.Composite, net.sf.composite.SpecializableComposite, net.sf.composite.StrictlyTypedComposite, BeanReflector, CompositeReflector, ContainerReflector, DecoratedReflector, GrowableContainerReflector, IndexedContainerReflector, InstantiatingReflector, MutableIndexedContainerReflector, Reflector, SizableReflector

public class ServletRequestReflector
extends StubbornDelegatingReflector

ServletRequest reflector.

Since:
Morph 1.1 (Oct 25, 2007)
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.morph.reflect.reflectors.BaseReflector
log
 
Fields inherited from interface net.sf.morph.reflect.BeanReflector
IMPLICIT_PROPERTY_CLASS, IMPLICIT_PROPERTY_PROPERTY_NAMES, IMPLICIT_PROPERTY_THIS
 
Constructor Summary
ServletRequestReflector()
           
 
Method Summary
protected  java.lang.Class getTypeImpl(java.lang.Object bean, java.lang.String propertyName)
          Default implementation finds the first reflector that returns a non-null value for the given property and returns the type of that value.
 
Methods inherited from class net.sf.morph.reflect.reflectors.StubbornDelegatingReflector
addImpl, getContainedTypeImpl, getImpl, getImpl, getIteratorImpl, getPropertyNamesImpl, getReflectableClassesImpl, getSizeImpl, initializeImpl, isReadableImpl, isReflectableImpl, isWriteableImpl, newInstanceImpl, setImpl, setImpl
 
Methods inherited from class net.sf.morph.reflect.reflectors.BaseCompositeReflector
clone, getComponents, getComponentType, getComponentValidator, getSpecializer, isPerformingLogging, isSpecializable, setComponents, setComponentValidator, setSpecializer, specialize, toString
 
Methods inherited from class net.sf.morph.reflect.reflectors.BaseReflector
add, checkIndex, checkIsReflectable, createWrapperInvocationHandler, get, get, getContainedType, getIterator, getPropertyNames, getReflectableCallCache, getReflectableClasses, getReflectorName, getSize, getType, getWrapper, getWrapperImpl, initialize, isCachingIsReflectableCalls, isInitialized, isReadable, isReflectable, isReflectable, isReflectableImpl, isStrictlyTyped, isValidIndex, isWrappingRuntimeExceptions, isWriteable, newInstance, newInstanceImpl, set, set, setCachingIsReflectableCalls, setInitialized, setReflectableCallCache, setReflectorName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.morph.reflect.DecoratedReflector
isReflectable
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.composite.StrictlyTypedComposite
getComponentType
 
Methods inherited from interface net.sf.composite.SpecializableComposite
isSpecializable, specialize
 
Methods inherited from interface net.sf.morph.reflect.BeanReflector
get, getPropertyNames, getType, isReadable, isWriteable, set
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.GrowableContainerReflector
add
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.InstantiatingReflector
newInstance
 
Methods inherited from interface net.sf.morph.reflect.MutableIndexedContainerReflector
set
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.Reflector
getReflectableClasses, getWrapper
 
Methods inherited from interface net.sf.morph.reflect.CompositeReflector
isReflectable
 

Constructor Detail

ServletRequestReflector

public ServletRequestReflector()
Method Detail

getTypeImpl

protected java.lang.Class getTypeImpl(java.lang.Object bean,
                                      java.lang.String propertyName)
                               throws java.lang.Exception
Description copied from class: StubbornDelegatingReflector
Default implementation finds the first reflector that returns a non-null value for the given property and returns the type of that value. If no non-null value could be found, returns the type that is returned by the first BeanReflector that is a component of this reflector.

Overrides:
getTypeImpl in class StubbornDelegatingReflector
Throws:
java.lang.Exception


Copyright © 2004-2008.