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

com.tangosol.coherence.config.ParameterMacroExpressionParser Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.tangosol.coherence.config;

import com.tangosol.config.expression.Expression;
import com.tangosol.config.expression.ExpressionParser;

import java.text.ParseException;

/**
 * A {@link ParameterMacroExpressionParser} is an {@link ExpressionParser} for Coherence Parameter Macros.
 *
 * @author bo  2011.10.18
 * @since Coherence 12.1.2
 */
public class ParameterMacroExpressionParser
        implements ExpressionParser
    {
    // ----- ExpressionParser interface -------------------------------------

    /**
     * {@inheritDoc}
     */
    @Override
    public  Expression parse(String sExpression, Class clzResultType)
            throws ParseException
        {
        return new ParameterMacroExpression(sExpression, clzResultType);
        }

    // ----- constants ------------------------------------------------------

    /**
     * The singleton instance of the {@link ParameterMacroExpressionParser}.
     */
    public final static ExpressionParser INSTANCE = new ParameterMacroExpressionParser();
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy