org.apache.camel.impl.converter
Class LazyLoadingTypeConverter
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.converter.BaseTypeConverterRegistry
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:
Fields inherited from class org.apache.camel.impl.converter.BaseTypeConverterRegistry |
attemptCounter, factoryFinder, failedCounter, fallbackConverters, hitCounter, injector, log, missCounter, misses, resolver, statistics, typeConverterLoaders, typeMappings |
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 |
LazyLoadingTypeConverter
public LazyLoadingTypeConverter(PackageScanClassResolver resolver,
Injector injector,
FactoryFinder factoryFinder)
- Deprecated.
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