org.scijava.convert
Class AbstractConvertService
java.lang.Object
org.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.service.AbstractService
org.scijava.plugin.AbstractPTService<PT>
org.scijava.plugin.AbstractSingletonService<PT>
org.scijava.plugin.AbstractHandlerService<ConversionRequest,Converter<?,?>>
org.scijava.convert.AbstractConvertService
- All Implemented Interfaces:
- Comparable<Prioritized>, Contextual, ConvertService, Disposable, HandlerService<ConversionRequest,Converter<?,?>>, HasPluginInfo, PTService<Converter<?,?>>, RichPlugin, SciJavaPlugin, SingletonService<Converter<?,?>>, TypedService<ConversionRequest,Converter<?,?>>, Prioritized, Service, Typed<ConversionRequest>
- Direct Known Subclasses:
- DefaultConvertService
public abstract class AbstractConvertService
- extends AbstractHandlerService<ConversionRequest,Converter<?,?>>
- implements ConvertService
Abstract superclass for ConvertService
implementations. Sets
this service as the active delegate service in ConversionUtils
.
- Author:
- Mark Hiner
AbstractConvertService
public AbstractConvertService()
convert
public Object convert(Object src,
Type dest)
- Specified by:
convert
in interface ConvertService
- See Also:
Converter.convert(Object, Type)
convert
public <T> T convert(Object src,
Class<T> dest)
- Specified by:
convert
in interface ConvertService
- See Also:
Converter.convert(Object, Class)
convert
public Object convert(ConversionRequest request)
- Specified by:
convert
in interface ConvertService
- See Also:
Converter.convert(ConversionRequest)
initialize
public void initialize()
- Description copied from interface:
Service
- Performs any needed initialization when the service is first loaded.
NB: This method is not intended to be called directly. It is called by
the service framework itself (specifically by the ServiceHelper
)
when initializing the service. It should not be called a second time.
- Specified by:
initialize
in interface Service
- Overrides:
initialize
in class AbstractSingletonService<Converter<?,?>>
Copyright © 2009–2014 SciJava. All rights reserved.