com.tangosol.config.xml.AttributeProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence Show documentation
Show all versions of coherence Show documentation
Oracle Coherence Community Edition
/*
* 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.config.xml;
import com.tangosol.config.ConfigurationException;
import com.tangosol.run.xml.XmlAttribute;
/**
* An {@link AttributeProcessor} is responsible for processing {@link XmlAttribute} content
* to return a strongly-typed value.
*
* @param the type of value that will be returned by the {@link AttributeProcessor}
*
* @author bo 2011.06.14
* @since Coherence 12.1.2
*/
public interface AttributeProcessor
{
/**
* Process an {@link XmlAttribute} and return a specific type of value.
*
* @param context the {@link ProcessingContext} in which the {@link XmlAttribute} is being processed
* @param attribute the {@link XmlAttribute} to be processed
*
* @throws ConfigurationException when a configuration problem was encountered
*
* @return a value of type T
*/
public T process(ProcessingContext context, XmlAttribute attribute)
throws ConfigurationException;
}