net.sf.morph.reflect.reflectors
Class ServletContextInitParameterReflector
java.lang.Object
net.sf.morph.reflect.reflectors.BaseReflector
net.sf.morph.reflect.reflectors.BaseBeanReflector
net.sf.morph.reflect.reflectors.BaseServletReflector
net.sf.morph.reflect.reflectors.ServletContextInitParameterReflector
- All Implemented Interfaces:
- net.sf.composite.Component, BeanReflector, DecoratedReflector, Reflector, SizableReflector
public class ServletContextInitParameterReflector
- extends BaseServletReflector
Exposes the init-parameters of a ServletContext.
- Since:
- Dec 21, 2004
- Author:
- Matt Sgarlata
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, getReflectorName, getSize, getSizeImpl, getType, getWrapper, getWrapperImpl, initialize, initializeImpl, isCachingIsReflectableCalls, isInitialized, isPerformingLogging, isReadable, isReflectable, isReflectable, isReflectableImpl, isReflectableImpl, isStrictlyTyped, isValidIndex, isWrappingRuntimeExceptions, isWriteable, 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 |
ServletContextInitParameterReflector
public ServletContextInitParameterReflector()
getServletContext
protected javax.servlet.ServletContext getServletContext(java.lang.Object bean)
getPropertyNamesImpl
protected java.lang.String[] getPropertyNamesImpl(java.lang.Object bean)
throws java.lang.Exception
- Description copied from class:
BaseBeanReflector
- Template method must be overridden.
Implementation of
BeanReflector.getPropertyNames(Object)
.
Implementation automatically provided for
IndexedContainerReflectors. For other reflectors, throws an
UnsupportedOperationException.
- Specified by:
getPropertyNamesImpl
in class BaseBeanReflector
- Throws:
java.lang.Exception
getImpl
protected java.lang.Object getImpl(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.get(Object, String)
.
Implementation automatically provided for
IndexedContainerReflectors. For other reflectors, throws an
UnsupportedOperationException.
- Specified by:
getImpl
in class BaseBeanReflector
- Throws:
java.lang.Exception
setImpl
protected void setImpl(java.lang.Object bean,
java.lang.String propertyName,
java.lang.Object value)
throws java.lang.Exception
- Description copied from class:
BaseBeanReflector
- Template method must be overridden.
Implementation of
BeanReflector.set(Object, String, Object)
.
Implementation automatically provided for
MutableIndexedContainerReflectors. For other reflectors, throws an
UnsupportedOperationException.
- Specified by:
setImpl
in class BaseBeanReflector
- Throws:
java.lang.Exception
isWriteableImpl
protected boolean isWriteableImpl(java.lang.Object bean,
java.lang.String propertyName)
throws java.lang.Exception
- Description copied from class:
BaseReflector
- Implementation of
BeanReflector.isWriteable(Object, String)
.
Default implementation assumes that all readable properties are also
writeable. One exception to this is when this reflector is an
IndexedContainerReflector but not a MutableIndexedContainerReflector, in
which case no properties are considered writeable.
- Overrides:
isWriteableImpl
in class BaseReflector
- Throws:
java.lang.Exception
getReflectableClassesImpl
protected java.lang.Class[] getReflectableClassesImpl()
throws java.lang.Exception
- Description copied from class:
BaseReflector
- Implementation of
Reflector.getReflectableClasses()
.
- Specified by:
getReflectableClassesImpl
in class BaseReflector
- Throws:
java.lang.Exception
Copyright © 2004-2008.