org.mule.api.annotations
Annotation Type MetaDataRetriever


@Target(value=METHOD)
@Retention(value=SOURCE)
@Documented
public @interface MetaDataRetriever

The method annotated with MetaDataRetriever describes the metadata for the received metadata key parameter.
An org.mule.common.metadata.MetaDataKey parameter is required and also the method return type must be org.mule.common.metadata.MetaData.

To build up this metadata we recommend using org.mule.common.metadata.builder.DefaultMetaDataBuilder. For more information about org.mule.common.metadata.MetaData see org.mule.common.metadata.MetaDataModel.

Extra information

  1. This annotation can be used inside an @Connector context or inside an @MetaDataCategory.

  2. There must be an @MetaDataKeyRetriever method already defined.

  3. When @MetaDataOutputRetriever is present at the same context this annotation will only work for input metadata. scenarios ONLY.



Copyright © 2010–2014 MuleSoft, Inc.. All rights reserved.