
org.mule.tck.transformer.NoActionTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mule-tests-functional Show documentation
Show all versions of mule-tests-functional Show documentation
Mule functional test framework (TCK)
/*
* Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this distribution in the
* LICENSE.txt file.
*/
package org.mule.tck.transformer;
import org.mule.api.transformer.TransformerException;
import org.mule.transformer.AbstractTransformer;
import org.mule.transformer.types.DataTypeFactory;
/**
* NoActionTransformer
doesn't do any transformation on the source
* object and returns the source as the result. This can be used to overload the
* default transform for an endpoint.
*/
@Deprecated
public final class NoActionTransformer extends AbstractTransformer
{
public NoActionTransformer()
{
registerSourceType(DataTypeFactory.OBJECT);
setReturnDataType(DataTypeFactory.OBJECT);
}
@Override
public Object doTransform(Object src, String encoding) throws TransformerException
{
return src;
}
@Override
public boolean isAcceptNull()
{
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy