net.sf.morph.transform.transformers
Class BaseReflectorTransformer

java.lang.Object
  extended by net.sf.morph.transform.transformers.BaseTransformer
      extended by net.sf.morph.transform.transformers.BaseReflectorTransformer
All Implemented Interfaces:
net.sf.composite.Component, DecoratedTransformer, ExplicitTransformer, Transformer
Direct Known Subclasses:
BasePropertyNameCopier, BaseToPrettyTextConverter, CombiningCopier, ContainerCopier, ContainerToTraverserConverter

public class BaseReflectorTransformer
extends BaseTransformer

A base class for transformers that are implemented using a Reflector.

Since:
Dec 24, 2004
Author:
Matt Sgarlata

Field Summary
 
Fields inherited from class net.sf.morph.transform.transformers.BaseTransformer
destinationClasses, log, sourceClasses
 
Constructor Summary
BaseReflectorTransformer()
           
 
Method Summary
protected  BeanReflector getBeanReflector()
           
protected  ContainerReflector getContainerReflector()
           
protected  java.lang.Class[] getDestinationClassesImpl()
          Transformer.getDestinationClasses() implementation template method.
protected  GrowableContainerReflector getGrowableContainerReflector()
           
protected  IndexedContainerReflector getIndexedContainerReflector()
           
protected  MutableIndexedContainerReflector getMutableIndexedContainerReflector()
           
protected  java.lang.Class[] getSourceClassesImpl()
          Transformer.getSourceClasses() implementation template method.
protected  boolean hasReflector(java.lang.Class reflectorType)
           
 
Methods inherited from class net.sf.morph.transform.transformers.BaseTransformer
clone, convert, convert, convertImpl, copy, copy, copyImpl, createDefaultReflector, createNewInstance, createNewInstanceImpl, createReusableSource, equals, equals, equalsUnidirectionalTest, getDestinationClasses, getInstantiatingReflector, getLocale, getLog, getNestedTransformer, getReflector, getReflector, getSourceClasses, getTransformableCallCache, getTransformerName, initialize, initializeImpl, isAutomaticallyHandlingNulls, isCachingIsTransformableCalls, isImpreciseTransformation, isImpreciseTransformationImpl, isInitialized, isPerformingLogging, isTransformable, isTransformableImpl, isWrappingRuntimeExceptions, setCachingIsTransformableCalls, setDestinationClasses, setInitialized, setLog, setNestedTransformer, setReflector, setSourceClasses, setTransformableCallCache, setTransformerName, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseReflectorTransformer

public BaseReflectorTransformer()
Method Detail

getDestinationClassesImpl

protected java.lang.Class[] getDestinationClassesImpl()
                                               throws java.lang.Exception
Description copied from class: BaseTransformer
Transformer.getDestinationClasses() implementation template method.

Specified by:
getDestinationClassesImpl in class BaseTransformer
Returns:
Class[]
Throws:
java.lang.Exception

getSourceClassesImpl

protected java.lang.Class[] getSourceClassesImpl()
                                          throws java.lang.Exception
Description copied from class: BaseTransformer
Transformer.getSourceClasses() implementation template method.

Specified by:
getSourceClassesImpl in class BaseTransformer
Returns:
Class[]
Throws:
java.lang.Exception

getBeanReflector

protected BeanReflector getBeanReflector()

getContainerReflector

protected ContainerReflector getContainerReflector()

getMutableIndexedContainerReflector

protected MutableIndexedContainerReflector getMutableIndexedContainerReflector()

getIndexedContainerReflector

protected IndexedContainerReflector getIndexedContainerReflector()

getGrowableContainerReflector

protected GrowableContainerReflector getGrowableContainerReflector()

hasReflector

protected boolean hasReflector(java.lang.Class reflectorType)


Copyright © 2004-2008.