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

com.tangosol.coherence.config.xml.processor.TransformerProcessor Maven / Gradle / Ivy

There is a newer version: 24.03
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.xml.processor;

import com.tangosol.coherence.config.builder.ParameterizedBuilder;

import com.tangosol.config.ConfigurationException;

import com.tangosol.config.xml.ElementProcessor;
import com.tangosol.config.xml.ProcessingContext;
import com.tangosol.config.xml.XmlSimpleName;

import com.tangosol.run.xml.XmlElement;

import com.tangosol.util.Filter;

/**
 * Responsible for processing {@code view-filter} elements.
 *
 * @author rlubke
 * @since 12.2.1.4
 */
@XmlSimpleName("transformer")
public class TransformerProcessor
        implements ElementProcessor>
    {
    // ----- ElementProcessor methods ---------------------------------------

    @SuppressWarnings("unchecked")
    @Override
    public ParameterizedBuilder process(ProcessingContext context, XmlElement xmlElement)
            throws ConfigurationException
        {
        // fetch the builder defined in the "transformer" element
        ParameterizedBuilder bldr = ElementProcessorHelper.processParameterizedBuilder(context, xmlElement);

        return (ParameterizedBuilder) bldr;
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy