01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: *****************************************************************************/package org.picocontainer.gems.constraints;
08:
09: import org.picocontainer.ComponentAdapter;
10:
11: /**
12: * A constraint that matches any component adapter.
13: *
14: * @author Nick Sieger
15: */
16: public class Anything extends AbstractConstraint {
17: public static final Anything ANYTHING = new Anything();
18:
19: public Anything() {
20: }
21:
22: public boolean evaluate(ComponentAdapter adapter) {
23: return true;
24: }
25: }
|