View Javadoc

1   /*
2    * Copyright 2004-2005 Dan Washusen
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.reactive.beans.factory.config;
18  
19  /***
20   * Evalutates a placeholder returning the value retrieved from the configuration source.
21   *
22   * @author Dan Washusen
23   * @version $Id: PlaceholderEvaluator.java,v 1.2 2004/12/29 11:59:31 dan_washusen Exp $
24   * @since 16.12.2004
25   */
26  public interface PlaceholderEvaluator {
27      /***
28       * Evaluates an expression to a value defined in the configuration agent.
29       * @param placeholder The placeholder to evaluate
30       * @return The value returned from the configuration source
31       */
32      Object evaluate(Placeholder placeholder);
33  }