Search in sources :

Example 1 with DefaultFizzBuzzUpperLimitParameter

use of com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.parameters.DefaultFizzBuzzUpperLimitParameter in project FizzBuzzEnterpriseEdition by EnterpriseQualityCoding.

the class Main method main.

public static void main(final String[] args) {
    final ApplicationContext context = new ClassPathXmlApplicationContext(Constants.SPRING_XML);
    final FizzBuzz myFizzBuzz = (FizzBuzz) context.getBean(Constants.STANDARD_FIZZ_BUZZ);
    final FizzBuzzUpperLimitParameter fizzBuzzUpperLimit = new DefaultFizzBuzzUpperLimitParameter();
    myFizzBuzz.fizzBuzz(fizzBuzzUpperLimit.obtainUpperLimitValue());
    ((ConfigurableApplicationContext) context).close();
}
Also used : FizzBuzz(com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.FizzBuzz) ConfigurableApplicationContext(org.springframework.context.ConfigurableApplicationContext) ConfigurableApplicationContext(org.springframework.context.ConfigurableApplicationContext) ClassPathXmlApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext) ApplicationContext(org.springframework.context.ApplicationContext) ClassPathXmlApplicationContext(org.springframework.context.support.ClassPathXmlApplicationContext) DefaultFizzBuzzUpperLimitParameter(com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.parameters.DefaultFizzBuzzUpperLimitParameter) DefaultFizzBuzzUpperLimitParameter(com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.parameters.DefaultFizzBuzzUpperLimitParameter) FizzBuzzUpperLimitParameter(com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.parameters.FizzBuzzUpperLimitParameter)

Aggregations

DefaultFizzBuzzUpperLimitParameter (com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.parameters.DefaultFizzBuzzUpperLimitParameter)1 FizzBuzz (com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.FizzBuzz)1 FizzBuzzUpperLimitParameter (com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.parameters.FizzBuzzUpperLimitParameter)1 ApplicationContext (org.springframework.context.ApplicationContext)1 ConfigurableApplicationContext (org.springframework.context.ConfigurableApplicationContext)1 ClassPathXmlApplicationContext (org.springframework.context.support.ClassPathXmlApplicationContext)1