All Downloads are FREE. Search and download functionalities are using the official Maven repository.

as.leap.code.Definer Maven / Gradle / Ivy

The newest version!
package as.leap.code;

import java.util.Set;

/**
 * Created by stream.
 */
public interface Definer {

  /**
   * define a handler with specified parameter
   *
   * @param name handler name
   * @param handler function/job handler
   */
  void define(String name, LASHandler handler);

  /**
   * get ZHandler for invoking.
   * the type of Request and Response has been erased while execute get method,
   * so just return the interface.
   *
   * @param name handler name
   * @return function/job handler
   */
  LASHandler getHandler(String name);

  /**
   * get name of all handler
   *
   * @return collection of handler name
   */
  Set getHandlerNames();

  /**
   * there are three kinds of definer
   *
   * @return definer category
   */
  RequestCategory getCategory();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy