D
- the type of binding datapublic abstract class ContextMapperFactory<D extends BindingData> extends Object
Constructor and Description |
---|
ContextMapperFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Class<D> |
getBindingDataClass()
Component developer should implement this message to specify the type of source/target object.
|
static Map<Class,ContextMapperFactory> |
getContextMapperFactories()
Gets a map of all known ContextMapperFactories, keyed by their supported source/target object type.
|
static <F extends BindingData> |
getContextMapperFactory(Class<F> targetClass)
Constructs a new ContextMapperFactory that is known to be able to construct ContextMappers
of the specified type.
|
ContextMapper<D> |
newContextMapper(Class<? extends ContextMapper<D>> custom)
Will create a new custom ContextMapper based on the specified class, or if it can't, will use the
default/fallback implementation.
|
ContextMapper<D> |
newContextMapper(org.switchyard.config.model.composer.ContextMapperModel model)
Will create a new ContextMapper based on the specifications of the passed in ContextMapperModel, or if
a class it not specified, will apply the rest of the model properties on the default/fallback implementation.
|
abstract ContextMapper<D> |
newContextMapperDefault()
Component developer should implement this message to provide their default/fallback implementation
if the ContextMapperModel passed into
newContextMapper(ContextMapperModel)
doesn't specify (or specifies a bad) context mapper class to use. |
public abstract Class<D> getBindingDataClass()
public abstract ContextMapper<D> newContextMapperDefault()
newContextMapper(ContextMapperModel)
doesn't specify (or specifies a bad) context mapper class to use.public final ContextMapper<D> newContextMapper(org.switchyard.config.model.composer.ContextMapperModel model)
model
- contains the config detailspublic final ContextMapper<D> newContextMapper(Class<? extends ContextMapper<D>> custom)
custom
- the custom ContextMapper classpublic static final <F extends BindingData> ContextMapperFactory<F> getContextMapperFactory(Class<F> targetClass)
F
- the type of binding datatargetClass
- the target ContextMapper classpublic static final Map<Class,ContextMapperFactory> getContextMapperFactories()
Copyright © 2013–2016 JBoss by Red Hat. All rights reserved.