@IntegrationFeature(clazz=PayloadFactory.class, name="payload") public class PayloadFactoryFeature extends AbstractFeatureRepoAware implements PayloadFactory
XMessageFormat
instances giving the
particular payload typelogger, projectConfig, properties
Constructor and Description |
---|
PayloadFactoryFeature() |
Modifier and Type | Method and Description |
---|---|
<T> XMessageFormat<T> |
createPayload(T payload)
Creates the payload as a
XMessageFormat for the given payload type |
void |
init(org.springframework.context.ApplicationContext context)
Initiates the message format factory map
|
getFeatureImpl
destroy, getInt, getLong, getString, hasProp, setProjectConfig, setProperties
public void init(org.springframework.context.ApplicationContext context)
init
in interface Initializable
init
in class AbstractIntegrationFeature
public <T> XMessageFormat<T> createPayload(T payload)
XMessageFormat
for the given payload typecreatePayload
in interface PayloadFactory
T
- the type of the payloadpayload
- the payload to be used for the new message formatCopyright © 2016–2019 AdroitLogic. All rights reserved.