All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.tapestry5.ioc.services.SymbolProvider Maven / Gradle / Ivy

The newest version!
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package org.apache.tapestry5.ioc.services;

import org.apache.tapestry5.ioc.annotations.UsesMappedConfiguration;

/**
 * A provider of values for symbols, used by the {@link org.apache.tapestry5.ioc.services.SymbolSource} service.
 *
 * This is the service interface for the FactoryDefaults and ApplicationDefaults services; each of these takes a
 * configuration mapping symbols to their values.
 *
 * @see FactoryDefaults
 * @see ApplicationDefaults
 */
@UsesMappedConfiguration(String.class)
public interface SymbolProvider
{
    /**
     * Returns the value for the symbol, or null if this provider can not provide a value. The value itself may contain
     * symbols that will be recursively expanded.
     *
     * @param symbolName
     * @return the value or null
     */
    String valueForSymbol(String symbolName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy