Package org.mokai

Examples of org.mokai.Configurable.configure()


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


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

  @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.