/** * Define pairwise ordering giving priority to the <code>firstFactory</code> over the <code> * secondFactory</code>. * * @param category * @param firstFactory * @param secondFactory * @return if this call establishes a new order */ public <T> boolean setOrdering( final Class<T> category, final T firstFactory, final T secondFactory) { if (firstFactory == secondFactory) { throw new IllegalArgumentException("Factories must not be the same instance."); } return registry.setOrder(category, firstFactory, secondFactory); }