Package org.ogce.gfac.extension

Examples of org.ogce.gfac.extension.ExitableChain


    /*
     * Validation check and return doing-nothing chain object
     */
    if (list == null || list.length == 0) {
      return new ExitableChain() {
        @Override
        protected boolean execute(InvocationContext context) {
          return true;
        }
      };
    }

    ExitableChain currentPoint = list[0];
    for (int i = 1; i < list.length; i++) {
      currentPoint = currentPoint.setNext(list[i]);
    }
    return currentPoint;
  }
View Full Code Here

TOP

Related Classes of org.ogce.gfac.extension.ExitableChain

Copyright © 2018 www.massapicom. 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.