/*
 * Copyright © 2012 Sebastian Hoß <mail@shoss.de>
 * This work is free. You can redistribute it and/or modify it under the
 * terms of the Do What The Fuck You Want To Public License, Version 2,
 * as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
 */
package com.github.sebhoss.contract.verifier;

import com.github.sebhoss.common.annotation.CompilerWarnings;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Configuration for a Spring-EL based {@link ContractContextFactory}.
 */
@Configuration
public class SpringElConfiguration {

    /**
     * @return A Spring-EL based {@link ContractContextFactory}.
     */
    @Bean
    @SuppressWarnings(CompilerWarnings.STATIC_METHOD)
    public ContractContextFactory contractContextFactory() {
        return new SpringELBasedContractContextFactory();
    }

}

/*
 * Copyright © 2012 Sebastian Hoß <mail@shoss.de>
 * This work is free. You can redistribute it and/or modify it under the
 * terms of the Do What The Fuck You Want To Public License, Version 2,
 * as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
 */
package com.github.sebhoss.contract.verifier;

import com.github.sebhoss.common.annotation.CompilerWarnings;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Configuration for a Spring-EL based {@link ContractContextFactory}.
 */
@Configuration
public class SpringElConfiguration {

    /**
     * @return A Spring-EL based {@link ContractContextFactory}.
     */
    @Bean
    @SuppressWarnings(CompilerWarnings.STATIC_METHOD)
    public ContractContextFactory contractContextFactory() {
        return new SpELBasedContractContextFactory();
    }

}

Use new SpEL classes