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

water.api.HandlerFactory Maven / Gradle / Ivy

There is a newer version: 3.8.2.9
Show newest version
package water.api;

/**
 * Handler factory supports different strategies to
 * create an instance of handler class for given registered route.
 */
public interface HandlerFactory {

  /** Shared default factory to create handler by using no-arg ctor
   * and reflection. */
  HandlerFactory DEFAULT = new HandlerFactory() {

    @Override
    public Handler create(Class handlerClz) throws Exception {
      return handlerClz.newInstance();
    }
  };

  Handler create(Class handler) throws Exception;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy