public abstract class AbstractConvertService extends AbstractHandlerService<ConversionRequest,Converter<?,?>> implements ConvertService
ConvertService
implementations. Sets
this service as the active delegate service in ConversionUtils
.Constructor and Description |
---|
AbstractConvertService() |
Modifier and Type | Method and Description |
---|---|
Object |
convert(ConversionRequest request) |
<T> T |
convert(Object src,
Class<T> dest) |
Object |
convert(Object src,
Type dest) |
void |
initialize()
Performs any needed initialization when the service is first loaded.
|
getHandler, supports
create, filterInstances, getInstance, getInstances
getPlugins, getPluginService
dispose, getContext, registerEventHandlers, setContext, toString
compareTo, getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCompatibleInputs, getHandler, getHandler, getHandler, getHandler, supports, supports, supports, supports
getHandler, getInstances, supports
getInstance
create, getPlugins, getPluginService, getPluginType
registerEventHandlers
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public Object convert(Object src, Type dest)
convert
in interface ConvertService
Converter.convert(Object, Type)
public <T> T convert(Object src, Class<T> dest)
convert
in interface ConvertService
Converter.convert(Object, Class)
public Object convert(ConversionRequest request)
convert
in interface ConvertService
Converter.convert(ConversionRequest)
public void initialize()
Service
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.
initialize
in interface Service
initialize
in class AbstractSingletonService<Converter<?,?>>
Copyright © 2009–2015 SciJava. All rights reserved.