org.apache.camel.impl.converter
Class LazyLoadingTypeConverter

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.converter.BaseTypeConverterRegistry
          extended by org.apache.camel.impl.converter.LazyLoadingTypeConverter
All Implemented Interfaces:
Service, ShutdownableService, TypeConverterRegistry, StatefulService, SuspendableService, TypeConverter

Deprecated. will be removed in a future Camel release.

@Deprecated
public class LazyLoadingTypeConverter
extends BaseTypeConverterRegistry

Lazy implementation of a type converter registry used for type converters in Camel.

This implementation will lazy load type converters on-demand.

Version:

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.camel.impl.converter.BaseTypeConverterRegistry
BaseTypeConverterRegistry.FallbackTypeConverter, BaseTypeConverterRegistry.TypeMapping
 
Nested classes/interfaces inherited from interface org.apache.camel.spi.TypeConverterRegistry
TypeConverterRegistry.Statistics
 
Field Summary
 
Fields inherited from class org.apache.camel.impl.converter.BaseTypeConverterRegistry
attemptCounter, factoryFinder, failedCounter, fallbackConverters, hitCounter, injector, log, missCounter, misses, resolver, statistics, typeConverterLoaders, typeMappings
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
LazyLoadingTypeConverter(PackageScanClassResolver resolver, Injector injector, FactoryFinder factoryFinder)
          Deprecated.  
 
Method Summary
protected  Object doConvertTo(Class<?> type, Exchange exchange, Object value, boolean tryConvert)
          Deprecated.  
protected  TypeConverter doLookup(Class<?> toType, Class<?> fromType, boolean isSuper)
          Deprecated.  
protected  void doStart()
          Deprecated. Implementations override this method to support customized start/stop.
protected  void doStop()
          Deprecated. Implementations override this method to support customized start/stop.
 Set<Class<?>> getFromClassMappings()
          Deprecated.  
 Map<Class<?>,TypeConverter> getToClassMappings(Class<?> fromClass)
          Deprecated.  
 TypeConverter getTypeConverter(Class<?> toType, Class<?> fromType)
          Deprecated.  
 Map<BaseTypeConverterRegistry.TypeMapping,TypeConverter> getTypeMappings()
          Deprecated.  
 
Methods inherited from class org.apache.camel.impl.converter.BaseTypeConverterRegistry
addFallbackTypeConverter, addTypeConverter, convertTo, convertTo, getInjector, getOrFindTypeConverter, getStatistics, getTypeConverterLoaders, loadCoreTypeConverters, loadFallbackTypeConverters, loadTypeConverters, lookup, mandatoryConvertTo, mandatoryConvertTo, setInjector, tryConvertTo, tryConvertTo
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

LazyLoadingTypeConverter

public LazyLoadingTypeConverter(PackageScanClassResolver resolver,
                                Injector injector,
                                FactoryFinder factoryFinder)
Deprecated. 
Method Detail

doConvertTo

protected Object doConvertTo(Class<?> type,
                             Exchange exchange,
                             Object value,
                             boolean tryConvert)
Deprecated. 
Overrides:
doConvertTo in class BaseTypeConverterRegistry

getTypeConverter

public TypeConverter getTypeConverter(Class<?> toType,
                                      Class<?> fromType)
Deprecated. 
Overrides:
getTypeConverter in class BaseTypeConverterRegistry

getFromClassMappings

public Set<Class<?>> getFromClassMappings()
Deprecated. 
Overrides:
getFromClassMappings in class BaseTypeConverterRegistry

getToClassMappings

public Map<Class<?>,TypeConverter> getToClassMappings(Class<?> fromClass)
Deprecated. 
Overrides:
getToClassMappings in class BaseTypeConverterRegistry

getTypeMappings

public Map<BaseTypeConverterRegistry.TypeMapping,TypeConverter> getTypeMappings()
Deprecated. 
Overrides:
getTypeMappings in class BaseTypeConverterRegistry

doLookup

protected TypeConverter doLookup(Class<?> toType,
                                 Class<?> fromType,
                                 boolean isSuper)
Deprecated. 
Overrides:
doLookup in class BaseTypeConverterRegistry

doStart

protected void doStart()
                throws Exception
Deprecated. 
Description copied from class: ServiceSupport
Implementations override this method to support customized start/stop.

Important: See ServiceSupport.doStop() for more details.

Overrides:
doStart in class BaseTypeConverterRegistry
Throws:
Exception
See Also:
ServiceSupport.doStop()

doStop

protected void doStop()
               throws Exception
Deprecated. 
Description copied from class: ServiceSupport
Implementations override this method to support customized start/stop.

Important: Camel will invoke this ServiceSupport.doStop() method when the service is being stopped. This method will also be invoked if the service is still in uninitialized state (eg has not been started). The method is always called to allow the service to do custom logic when the service is being stopped, such as when CamelContext is shutting down.

Overrides:
doStop in class BaseTypeConverterRegistry
Throws:
Exception
See Also:
ServiceSupport.doStart()


Apache CAMEL