org.omnaest.utils.structure.element.converter
Class ElementConverterClassToClassInstanceFactory<T>

java.lang.Object
  extended by org.omnaest.utils.structure.element.converter.ElementConverterClassToClassInstanceFactory<T>
Type Parameters:
T - type
All Implemented Interfaces:
Serializable, ElementConverter<Class<? extends T>,FactoryTypeAware<T>>, ElementConverterSerializable<Class<? extends T>,FactoryTypeAware<T>>

public class ElementConverterClassToClassInstanceFactory<T>
extends Object
implements ElementConverterSerializable<Class<? extends T>,FactoryTypeAware<T>>

ElementConverter which converts a given Class type to an FactoryTypeAware instance which creates instances of the given type using ReflectionUtils.newInstanceOf(Class, Object...)

Author:
Omnaest
See Also:
ElementConverterClassToInstance, Serialized Form

Constructor Summary
ElementConverterClassToClassInstanceFactory()
           
 
Method Summary
 FactoryTypeAware<T> convert(Class<? extends T> type)
          Transforms a single element from one type into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementConverterClassToClassInstanceFactory

public ElementConverterClassToClassInstanceFactory()
Method Detail

convert

public FactoryTypeAware<T> convert(Class<? extends T> type)
Description copied from interface: ElementConverter
Transforms a single element from one type into another.

Specified by:
convert in interface ElementConverter<Class<? extends T>,FactoryTypeAware<T>>
Returns:
converted element


Copyright © 2013. All Rights Reserved.