
package org.apache.camel.spi;

/**
 * Listener for re-loading a {@link Resource} such as a Camel route.
 */
@FunctionalInterface
public interface ResourceReload {

    /**
     * Callback when the resource is re-loaded.
     *
     * @param name     name of the resource such as the file name (absolute)
     * @param resource the resource
     */
    void onReload(String name, Resource resource);

}
