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

org.jasig.cas.web.flow.CompositeFlowExecutionKeyConverter Maven / Gradle / Ivy

There is a newer version: 4.2.7
Show newest version
package org.jasig.cas.web.flow;

import org.springframework.binding.convert.converters.Converter;
import org.springframework.webflow.execution.repository.support.CompositeFlowExecutionKey;


/**
 * Special converter for the {@link CompositeFlowExecutionKey} to return as a String.
 *
 * @author Jerome Leleu
 * @since 4.0.0
 */
@SuppressWarnings("rawtypes")
public final class CompositeFlowExecutionKeyConverter implements Converter {

    /**
     * {@inheritDoc}
     */
    @Override
    public Class getSourceClass() {
        return CompositeFlowExecutionKey.class;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Class getTargetClass() {
        return String.class;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public Object convertSourceToTargetClass(final Object source, final Class targetClass) throws Exception {
        return source.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy