Permalink
Browse files

Installed spring and restructured for dependency injection.

  • Loading branch information...
emiln committed Mar 21, 2015
1 parent 65d6fc6 commit 2c3bab751b38d7ab03d50f779a827d156c028655
Showing with 404 additions and 196 deletions.
  1. +1 −0 .gitignore
  2. +5 −0 pom.xml
  3. +13 −0 resources/assets/configuration/spring/dependencyinjection/configuration/spring.xml
  4. +13 −1 src/main/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/Main.java
  5. +11 −5 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/{FizzBuzz.java → StandardFizzBuzz.java}
  6. +9 −3 ...eriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/BuzzStrategyFactory.java
  7. +8 −2 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/BuzzStringPrinterFactory.java
  8. +8 −3 ...company/business/java/fizzbuzz/packagenamingpackage/impl/factories/BuzzStringReturnerFactory.java
  9. +8 −4 .../fizzbuzz/packagenamingpackage/impl/factories/EnterpriseGradeFizzBuzzSolutionStrategyFactory.java
  10. +8 −1 ...a/fizzbuzz/packagenamingpackage/impl/factories/FizzBuzzOutputGenerationContextVisitorFactory.java
  11. +8 −2 ...eriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/FizzStrategyFactory.java
  12. +8 −2 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/FizzStringPrinterFactory.java
  13. +8 −2 ...company/business/java/fizzbuzz/packagenamingpackage/impl/factories/FizzStringReturnerFactory.java
  14. +9 −3 ...enamingpackage/impl/factories/{IntIntegerPrinterFactory.java → IntegerIntegerPrinterFactory.java}
  15. +8 −2 ...siness/java/fizzbuzz/packagenamingpackage/impl/factories/IntegerIntegerStringReturnerFactory.java
  16. +18 −6 ...riouscompany/business/java/fizzbuzz/packagenamingpackage/impl/factories/LoopComponentFactory.java
  17. +8 −2 ...mpany/business/java/fizzbuzz/packagenamingpackage/impl/factories/NewLineStringPrinterFactory.java
  18. +8 −2 ...pany/business/java/fizzbuzz/packagenamingpackage/impl/factories/NewLineStringReturnerFactory.java
  19. +7 −0 ...mpany/business/java/fizzbuzz/packagenamingpackage/impl/factories/NoFizzNoBuzzStrategyFactory.java
  20. +8 −1 ...ess/java/fizzbuzz/packagenamingpackage/impl/factories/SystemOutFizzBuzzOutputStrategyFactory.java
  21. +3 −0 .../java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopCondition.java
  22. +7 −1 ...in/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopContext.java
  23. +3 −0 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopInitializer.java
  24. +5 −8 ...ain/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopRunner.java
  25. +3 −0 src/main/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/loop/LoopStep.java
  26. +3 −0 ...iouscompany/business/java/fizzbuzz/packagenamingpackage/impl/math/arithmetics/IntegerDivider.java
  27. +3 −0 .../fizzbuzz/packagenamingpackage/impl/math/arithmetics/NumberIsMultipleOfAnotherNumberVerifier.java
  28. +3 −0 ...siness/java/fizzbuzz/packagenamingpackage/impl/parameters/DefaultFizzBuzzUpperLimitParameter.java
  29. +7 −9 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/BuzzPrinter.java
  30. +11 −12 ...m/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/BuzzStringPrinter.java
  31. +7 −9 ...ava/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/FizzPrinter.java
  32. +12 −13 ...m/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/FizzStringPrinter.java
  33. +12 −12 ...riouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/IntegerIntegerPrinter.java
  34. +8 −10 ...business/java/fizzbuzz/packagenamingpackage/impl/printers/{IntPrinter.java → IntegerPrinter.java}
  35. +7 −9 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/NewLinePrinter.java
  36. +11 −12 ...eriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/printers/NewLineStringPrinter.java
  37. +3 −0 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/BuzzStrategy.java
  38. +9 −2 ...s/java/fizzbuzz/packagenamingpackage/impl/strategies/EnterpriseGradeFizzBuzzSolutionStrategy.java
  39. +3 −0 .../com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/FizzStrategy.java
  40. +3 −0 ...iouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/NoFizzNoBuzzStrategy.java
  41. +23 −24 ...siness/java/fizzbuzz/packagenamingpackage/impl/strategies/SingleStepOutputGenerationStrategy.java
  42. +8 −6 ...seriouscompany/business/java/fizzbuzz/packagenamingpackage/impl/strategies/SingleStepPayload.java
  43. +5 −9 .../business/java/fizzbuzz/packagenamingpackage/impl/strategies/SystemOutFizzBuzzOutputStrategy.java
  44. +5 −8 .../impl/strategies/adapters/FizzBuzzOutputStrategyToFizzBuzzExceptionSafeOutputStrategyAdapter.java
  45. +6 −5 ...ackage/impl/strategies/adapters/LoopContextStateRetrievalToSingleStepOutputGenerationAdapter.java
  46. +3 −0 ...package/impl/strategies/comparators/doublecomparator/FirstIsLargerThanSecondDoubleComparator.java
  47. +3 −0 ...ackage/impl/strategies/comparators/doublecomparator/FirstIsSmallerThanSecondDoubleComparator.java
  48. +3 −0 ...kagenamingpackage/impl/strategies/comparators/integercomparator/IntegerForEqualityComparator.java
  49. +3 −0 ...packagenamingpackage/impl/strategies/comparators/integercomparator/ThreeWayIntegerComparator.java
  50. +3 −0 .../business/java/fizzbuzz/packagenamingpackage/impl/strategies/constants/BuzzStrategyConstants.java
  51. +3 −0 .../business/java/fizzbuzz/packagenamingpackage/impl/strategies/constants/FizzStrategyConstants.java
  52. +3 −0 ...s/java/fizzbuzz/packagenamingpackage/impl/strategies/constants/NoFizzNoBuzzStrategyConstants.java
  53. +3 −0 ...ackagenamingpackage/impl/strategies/converters/primitivetypesconverters/DoubleToIntConverter.java
  54. +3 −0 ...ackagenamingpackage/impl/strategies/converters/primitivetypesconverters/IntToDoubleConverter.java
  55. +3 −0 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/stringreturners/BuzzStringReturner.java
  56. +3 −0 ...scompany/business/java/fizzbuzz/packagenamingpackage/impl/stringreturners/FizzStringReturner.java
  57. +3 −0 ...usiness/java/fizzbuzz/packagenamingpackage/impl/stringreturners/IntegerIntegerStringReturner.java
  58. +3 −0 ...mpany/business/java/fizzbuzz/packagenamingpackage/impl/stringreturners/NewLineStringReturner.java
  59. +3 −0 ...ness/java/fizzbuzz/packagenamingpackage/impl/visitors/FizzBuzzOutputGenerationContextVisitor.java
  60. +5 −0 ...main/java/com/seriouscompany/business/java/fizzbuzz/packagenamingpackage/interfaces/FizzBuzz.java
  61. +5 −0 ...y/business/java/fizzbuzz/packagenamingpackage/interfaces/strategies/OutputGenerationStrategy.java
  62. +8 −6 src/test/java/FizzBuzzTest.java
View
@@ -173,3 +173,4 @@ pip-log.txt
#############
.class
target/
View
@@ -21,6 +21,11 @@
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.2.13.RELEASE</version>
</dependency>
</dependencies>
<build>
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl"/>
<context:component-scan base-package="com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces"/>
</beans>
@@ -1,12 +1,24 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.FizzBuzz;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.parameters.FizzBuzzUpperLimitParameter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.parameters.DefaultFizzBuzzUpperLimitParameter;
public class Main {
@Autowired
private static FizzBuzz _myFizzBuzz;
public static void main(String[] args) {
final FizzBuzz myFizzBuzz = new FizzBuzz();
ApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
final FizzBuzz myFizzBuzz = (FizzBuzz) context.getBean("standardFizzBuzz");
final FizzBuzzUpperLimitParameter fizzBuzzUpperLimit = new DefaultFizzBuzzUpperLimitParameter();
myFizzBuzz.fizzBuzz(fizzBuzzUpperLimit.ObtainUpperLimitValue());
((ConfigurableApplicationContext) context).close();
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.FizzBuzz;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.FizzBuzzSolutionStrategyFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories.EnterpriseGradeFizzBuzzSolutionStrategyFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.strategies.FizzBuzzSolutionStrategy;
public class FizzBuzz {
@Service
public class StandardFizzBuzz implements FizzBuzz {
@Autowired
FizzBuzzSolutionStrategyFactory _fizzBuzzSolutionStrategyFactory;
public void fizzBuzz(int nFizzBuzzUpperLimit) {
final FizzBuzzSolutionStrategyFactory mySolutionStrategyFactory =
new EnterpriseGradeFizzBuzzSolutionStrategyFactory();
final FizzBuzzSolutionStrategy mySolutionStrategy =
mySolutionStrategyFactory.createFizzBuzzSolutionStrategy();
this._fizzBuzzSolutionStrategyFactory.createFizzBuzzSolutionStrategy();
mySolutionStrategy.runSolution(nFizzBuzzUpperLimit);
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.BuzzStrategy;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.IsEvenlyDivisibleStrategyFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.strategies.IsEvenlyDivisibleStrategy;
@Service
public class BuzzStrategyFactory implements IsEvenlyDivisibleStrategyFactory {
@Autowired
private BuzzStrategy _buzzStrategy;
@Override
public IsEvenlyDivisibleStrategy createIsEvenlyDivisibleStrategy() {
final BuzzStrategy myBuzzStrategy = new BuzzStrategy();
return myBuzzStrategy;
return _buzzStrategy;
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.printers.BuzzStringPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.StringPrinterFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.StringPrinter;
@Service
public class BuzzStringPrinterFactory implements StringPrinterFactory {
@Autowired
private BuzzStringPrinter _buzzStringPrinter;
@Override
public StringPrinter createStringPrinter() {
final StringPrinter myBuzzStringPrinter = new BuzzStringPrinter();
return myBuzzStringPrinter;
return _buzzStringPrinter;
}
}
@@ -1,15 +1,20 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.BuzzStringReturner;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.StringStringReturnerFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.StringStringReturner;
@Service
public class BuzzStringReturnerFactory implements StringStringReturnerFactory {
@Autowired
private BuzzStringReturner _myBuzzStringReturner;
@Override
public StringStringReturner createStringStringReturner() {
final BuzzStringReturner myBuzzStringReturner = new BuzzStringReturner();
return myBuzzStringReturner;
return _myBuzzStringReturner;
}
}
@@ -1,16 +1,20 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.FizzBuzzSolutionStrategyFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.strategies.FizzBuzzSolutionStrategy;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.EnterpriseGradeFizzBuzzSolutionStrategy;
@Service
public class EnterpriseGradeFizzBuzzSolutionStrategyFactory implements FizzBuzzSolutionStrategyFactory {
@Autowired
private FizzBuzzSolutionStrategy _fizzBuzzSolutionStrategy;
@Override
public FizzBuzzSolutionStrategy createFizzBuzzSolutionStrategy() {
final FizzBuzzSolutionStrategy myEnterpriseGradeStrategy =
new EnterpriseGradeFizzBuzzSolutionStrategy();
return myEnterpriseGradeStrategy;
return _fizzBuzzSolutionStrategy;
}
}
@@ -1,15 +1,22 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.visitors.FizzBuzzOutputGenerationContextVisitor;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.OutputGenerationContextVisitorFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.visitors.OutputGenerationContextVisitor;
@Service
public class FizzBuzzOutputGenerationContextVisitorFactory implements
OutputGenerationContextVisitorFactory {
@Autowired
private FizzBuzzOutputGenerationContextVisitor _fizzBuzzOutputGenerationContextVisitor;
@Override
public OutputGenerationContextVisitor createVisitor() {
return new FizzBuzzOutputGenerationContextVisitor();
return _fizzBuzzOutputGenerationContextVisitor;
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.strategies.FizzStrategy;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.IsEvenlyDivisibleStrategyFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.strategies.IsEvenlyDivisibleStrategy;
@Service
public class FizzStrategyFactory implements IsEvenlyDivisibleStrategyFactory {
@Autowired
private FizzStrategy _fizzStrategy;
@Override
public IsEvenlyDivisibleStrategy createIsEvenlyDivisibleStrategy() {
final FizzStrategy myFizzStrategy = new FizzStrategy();
return myFizzStrategy;
return _fizzStrategy;
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.printers.FizzStringPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.StringPrinterFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.StringPrinter;
@Service
public class FizzStringPrinterFactory implements StringPrinterFactory {
@Autowired
FizzStringPrinter _fizzStringPrinter;
@Override
public StringPrinter createStringPrinter() {
final StringPrinter myFizzStringPrinter = new FizzStringPrinter();
return myFizzStringPrinter;
return _fizzStringPrinter;
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.FizzStringReturner;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.StringStringReturnerFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.StringStringReturner;
@Service
public class FizzStringReturnerFactory implements StringStringReturnerFactory {
@Autowired
private FizzStringReturner _fizzStringReturner;
@Override
public StringStringReturner createStringStringReturner() {
final FizzStringReturner myFizzStringReturner = new FizzStringReturner();
return myFizzStringReturner;
return _fizzStringReturner;
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.printers.IntegerIntegerPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.IntegerPrinterFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.IntegerPrinter;
public class IntIntegerPrinterFactory implements IntegerPrinterFactory {
@Service
public class IntegerIntegerPrinterFactory implements IntegerPrinterFactory {
@Autowired
private IntegerIntegerPrinter _integerIntegerPrinter;
@Override
public IntegerPrinter createPrinter() {
final IntegerIntegerPrinter myIntIntegerPrinter = new IntegerIntegerPrinter();
return myIntIntegerPrinter;
return _integerIntegerPrinter;
}
}
@@ -1,16 +1,22 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.stringreturners.IntegerIntegerStringReturner;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.IntegerStringReturnerFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.stringreturners.IntegerStringReturner;
@Service
public class IntegerIntegerStringReturnerFactory implements
IntegerStringReturnerFactory {
@Autowired
private IntegerIntegerStringReturner _integerIntegerStringReturner;
@Override
public IntegerStringReturner createIntegerStringReturner() {
final IntegerIntegerStringReturner myIntegerIntegerStringReturner = new IntegerIntegerStringReturner();
return myIntegerIntegerStringReturner;
return _integerIntegerStringReturner;
}
}
@@ -1,19 +1,32 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.loop.LoopCondition;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.loop.LoopFinalizer;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.loop.LoopInitializer;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.loop.LoopStep;
@Service
public class LoopComponentFactory {
@Autowired
LoopCondition _loopCondition;
@Autowired
LoopInitializer _loopInitializer;
@Autowired
LoopStep _lootStep;
public LoopCondition createLoopCondition() {
final LoopCondition myLoopCondition = new LoopCondition();
return myLoopCondition;
return _loopCondition;
}
public LoopInitializer createLoopInitializer() {
final LoopInitializer myLoopInitializer = new LoopInitializer();
return myLoopInitializer;
return _loopInitializer;
}
public LoopFinalizer createLoopFinalizer(int nLoopFinalValue) {
@@ -22,7 +35,6 @@ public LoopFinalizer createLoopFinalizer(int nLoopFinalValue) {
}
public LoopStep createLoopStep() {
final LoopStep myLoopStep = new LoopStep();
return myLoopStep;
return _lootStep;
}
}
@@ -1,15 +1,21 @@
package com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.factories;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.impl.printers.NewLineStringPrinter;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.factories.StringPrinterFactory;
import com.seriouscompany.business.java.fizzbuzz.packagenamingpackage.interfaces.printers.StringPrinter;
@Service
public class NewLineStringPrinterFactory implements StringPrinterFactory {
@Autowired
private NewLineStringPrinter _newLineStringPrinter;
@Override
public StringPrinter createStringPrinter() {
final NewLineStringPrinter myNewLineStringPrinter = new NewLineStringPrinter();
return myNewLineStringPrinter;
return _newLineStringPrinter;
}
}
Oops, something went wrong.

0 comments on commit 2c3bab7

Please sign in to comment.