/* * 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.functional.listener; /** * Callback represents an operation to be executed upon notification receive by a test listener such as * {@link org.mule.functional.listener.ExceptionListener} or {@link org.mule.functional.listener.FlowExecutionListener} * * @param <T> the type of the source object provided by the listened notification. */ public interface Callback<T> { /** * @param source is the source value of the {@link org.mule.runtime.core.api.context.notification.ServerNotification} received * by the notification listener that executes this callback */ public void execute(final T source); }