Package org.mokai

Examples of org.mokai.Configurable.destroy()


   */
  public static void destroy(Object object) throws ExecutionException {
    try {
      if (Configurable.class.isInstance(object)) {
        Configurable configurable = (Configurable) object;
        configurable.destroy();
      }
    } catch (Exception e) {
      throw new ExecutionException("Exception while destroying object: " + e.getMessage(), e);
    }
  }
View Full Code Here


  @Override
  public void destroy() throws Exception {
    for (Processor processor : processors) {
      if (Configurable.class.isInstance(processor)) {
        Configurable configurable = (Configurable) processor;
        configurable.destroy();
      }
    }
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.