net.sf.morph.reflect.reflectors
Class BaseServletReflector

java.lang.Object
  extended by net.sf.morph.reflect.reflectors.BaseReflector
      extended by net.sf.morph.reflect.reflectors.BaseBeanReflector
          extended by net.sf.morph.reflect.reflectors.BaseServletReflector
All Implemented Interfaces:
net.sf.composite.Component, BeanReflector, DecoratedReflector, Reflector, SizableReflector
Direct Known Subclasses:
HttpSessionAttributeReflector, PageContextAttributeReflector, ServletContextAttributeReflector, ServletContextInitParameterReflector, ServletRequestAttributeReflector, ServletRequestParameterReflector

public abstract class BaseServletReflector
extends BaseBeanReflector

Base class for reflectors that reflect objects from the Servlet API.

Since:
Nov 30, 2004
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
 
Fields inherited from interface net.sf.morph.reflect.SizableReflector
IMPLICIT_PROPERTY_SIZE
 
Constructor Summary
BaseServletReflector()
           
 
Method Summary
protected  java.lang.String[] enumerationToStringArray(java.util.Enumeration e)
           
protected  java.lang.Class getTypeImpl(java.lang.Object bean, java.lang.String propertyName)
          Template method must be overridden.
protected  boolean isReadableImpl(java.lang.Object bean, java.lang.String propertyName)
          Implementation of BeanReflector.isReadable(Object, String).
 
Methods inherited from class net.sf.morph.reflect.reflectors.BaseBeanReflector
getImpl, getPropertyNamesImpl, setImpl
 
Methods inherited from class net.sf.morph.reflect.reflectors.BaseReflector
add, addImpl, checkIndex, checkIsReflectable, createWrapperInvocationHandler, get, get, getContainedType, getContainedTypeImpl, getImpl, getIterator, getIteratorImpl, getPropertyNames, getReflectableCallCache, getReflectableClasses, getReflectableClassesImpl, getReflectorName, getSize, getSizeImpl, getType, getWrapper, getWrapperImpl, initialize, initializeImpl, isCachingIsReflectableCalls, isInitialized, isPerformingLogging, isReadable, isReflectable, isReflectable, isReflectableImpl, isReflectableImpl, isStrictlyTyped, isValidIndex, isWrappingRuntimeExceptions, isWriteable, isWriteableImpl, newInstance, newInstanceImpl, newInstanceImpl, set, set, setCachingIsReflectableCalls, setImpl, setInitialized, setReflectableCallCache, setReflectorName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.morph.reflect.BeanReflector
get, getPropertyNames, getType, isReadable, isWriteable, set
 
Methods inherited from interface net.sf.morph.reflect.SizableReflector
getSize
 

Constructor Detail

BaseServletReflector

public BaseServletReflector()
Method Detail

enumerationToStringArray

protected java.lang.String[] enumerationToStringArray(java.util.Enumeration e)

isReadableImpl

protected boolean isReadableImpl(java.lang.Object bean,
                                 java.lang.String propertyName)
                          throws java.lang.Exception
Description copied from class: BaseReflector
Implementation of BeanReflector.isReadable(Object, String). Default implementation assumes that all properties of the bean specified by BeanReflector.getPropertyNames(Object) are readable.

Overrides:
isReadableImpl in class BaseReflector
Throws:
java.lang.Exception

getTypeImpl

protected java.lang.Class getTypeImpl(java.lang.Object bean,
                                      java.lang.String propertyName)
                               throws java.lang.Exception
Description copied from class: BaseBeanReflector
Template method must be overridden. Implementation of BeanReflector.getType(Object, String). Default implementation provided. For IndexedContainerReflectors, returns the type by calling ContainerReflector.getContainedType(Class). For other reflectors, checks the type of the property by calling BaseReflector.get(Object, String).

Specified by:
getTypeImpl in class BaseBeanReflector
Throws:
java.lang.Exception


Copyright © 2004-2008.