1 /***************************************************************************** 2 * Copyright (C) PicoContainer Organization. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 *****************************************************************************/ 8 9 package org.picocontainer.gems.constraints; 10 11 import org.picocontainer.ComponentAdapter; 12 13 /** 14 * A constraint that matches any component adapter. 15 * 16 * @author Nick Sieger 17 * @version 1.1 18 */ 19 public class Anything extends AbstractConstraint { 20 public static final Anything ANYTHING = new Anything(); 21 22 public Anything() { 23 } 24 25 public boolean evaluate(ComponentAdapter adapter) { 26 return true; 27 } 28 } 29