Class Orderer<T>


  • public class Orderer<T>
    extends Object
    Used to order objects into an "execution" order. Each object must have a unique id. It may specify a list of constraints which identify the ordering of the objects.
    • Constructor Detail

      • Orderer

        public Orderer​(org.slf4j.Logger logger)
      • Orderer

        public Orderer​(org.slf4j.Logger logger,
                       boolean exceptionWhenDuplicateId)
    • Method Detail

      • add

        public void add​(Orderable<T> orderable)
        Adds an object to be ordered.
        Parameters:
        orderable -
      • add

        public void add​(String id,
                        T target,
                        String... constraints)
        Adds an object to be ordered.
        Parameters:
        id - unique, qualified id for the target
        target - the object to be ordered (or null as a placeholder)
        constraints - optional, variable constraints
        See Also:
        add(Orderable)