net.sf.beanlib.provider.replicator
Class DateReplicator

java.lang.Object
  extended by net.sf.beanlib.provider.replicator.ReplicatorTemplate
      extended by net.sf.beanlib.provider.replicator.DateReplicator
All Implemented Interfaces:
DateReplicatorSpi

public class DateReplicator
extends ReplicatorTemplate
implements DateReplicatorSpi

Default implementation of DateReplicatorSpi.

Author:
Joe D. Velopar

Nested Class Summary
private static class DateReplicator.Factory
          Factory for DateReplicator
 
Field Summary
private static DateReplicator.Factory factory
           
 
Fields inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate
log
 
Constructor Summary
protected DateReplicator(BeanTransformerSpi beanTransformer)
           
 
Method Summary
static DateReplicator newDateReplicatable(BeanTransformerSpi beanTransformer)
           
<T> T
replicateDate(Date fromDate, Class<T> toClass)
          Returns a replicated date.
 
Methods inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate
chooseClass, createToInstance, createToInstance, createToInstanceWithComparator, getTargetCloned, newInstanceAsPrivileged, populateBean, putTargetCloned, replicate, replicate, replicateByBeanReplicatable, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private static final DateReplicator.Factory factory
Constructor Detail

DateReplicator

protected DateReplicator(BeanTransformerSpi beanTransformer)
Method Detail

newDateReplicatable

public static DateReplicator newDateReplicatable(BeanTransformerSpi beanTransformer)

replicateDate

public <T> T replicateDate(Date fromDate,
                           Class<T> toClass)
Description copied from interface: DateReplicatorSpi
Returns a replicated date.

Specified by:
replicateDate in interface DateReplicatorSpi
Type Parameters:
T - target class type
Parameters:
fromDate - from date
toClass - target class