org.apache.tapestry5.ioc.internal.util
Class Orderer<T>
java.lang.Object
  
org.apache.tapestry5.ioc.internal.util.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 Summary | 
Orderer(org.slf4j.Logger logger)
 
            | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
Orderer
public Orderer(org.slf4j.Logger logger)
add
public void add(Orderable<T> orderable)
- Adds an object to be ordered.
- Parameters:
 orderable - 
 
 
override
public void override(Orderable<T> orderable)
 
add
public void add(String id,
                T target,
                String... constraints)
- Adds an object to be ordered.
- Parameters:
 id - unique, qualified id for the targettarget - the object to be ordered (or null as a placeholder)constraints - optional, variable constraints- See Also:
 add(Orderable)
 
 
override
public void override(String id,
                     T target,
                     String... constraints)
 
getOrdered
public List<T> getOrdered()
 
Copyright © 2003-2012 The Apache Software Foundation.