net.sf.morph.reflect
Interface Reflector
- All Superinterfaces:
- net.sf.composite.Component
- All Known Subinterfaces:
- BeanReflector, CompositeReflector, ContainerReflector, DecoratedReflector, GrowableContainerReflector, IndexedContainerReflector, InstantiatingReflector, MutableIndexedContainerReflector, SizableReflector
- All Known Implementing Classes:
- ArrayReflector, BaseBeanReflector, BaseCompositeReflector, BaseContainerReflector, BaseReflector, BaseServletReflector, CollectionReflector, ContextReflector, DynaBeanReflector, EnumerationReflector, HttpSessionAttributeReflector, IteratorReflector, ListReflector, MapReflector, ObjectReflector, PageContextAttributeReflector, ReflectorDecorator, ResetableIteratorWrapperReflector, ResultSetReflector, ServletContextAttributeReflector, ServletContextInitParameterReflector, ServletRequestAttributeReflector, ServletRequestParameterReflector, ServletRequestReflector, SetReflector, SimpleDelegatingReflector, SimpleInstantiatingReflector, SortedSetReflector, StringTokenizerReflector, StubbornDelegatingReflector, VelocityContextReflector, VelocityContextReflector
public interface Reflector
- extends net.sf.composite.Component
A reflector exposes the information contained within another object. There
are two main types of reflectors: BeanReflector
s
and ContainerReflector
s.
- Since:
- Nov 14, 2004
- Author:
- Matt Sgarlata
Method Summary |
java.lang.Class[] |
getReflectableClasses()
Defines which classes are reflectable by this reflector. |
Wrapper |
getWrapper(java.lang.Object object)
Optional operation: returns a wrapper for the given object. |
getReflectableClasses
java.lang.Class[] getReflectableClasses()
- Defines which classes are reflectable by this reflector. Each returned
class and all its subclasses are reflectable by this reflector.
- Returns:
- the classes that are reflectable by this reflector.
getWrapper
Wrapper getWrapper(java.lang.Object object)
- Optional operation: returns a wrapper for the given object.
- Parameters:
object
- the object for which a wrapper is desired
- Returns:
- the wrapper
- Throws:
java.lang.UnsupportedOperationException
- if the reflector does not support retrieving wrappers
Copyright © 2004-2008.