Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public interface BuilderParams<T> {...}
  2.  
  3. public abstract class AbstractBuilderParams<T extends EntityDTO, V extends Enum> implements BuilderParams<T> {...}
  4.  
  5. @Component
  6. @ClientParamsBuilder
  7. public class ClientParamsBuilderImpl extends AbstractBuilderParams {...}
  8.  
  9. @Component
  10. @OrderParamsBuilder
  11. public class OrderParamsBuilderImpl extends AbstractBuilderParams {...}
  12.  
  13. @Autowired
  14. @ClientParamsBuilder
  15. private BuilderParams clientBuilderParams;
  16.  
  17. @Autowired
  18. @OrderParamsBuilder
  19. private BuilderParams orderBuilderParams;
  20.  
  21. @Qualifier
  22. @Retention(RetentionPolicy.RUNTIME)
  23. @Target({
  24. ElementType.TYPE, ElementType.METHOD, ElementType.FIELD,
  25. ElementType.PARAMETER })
  26. public @interface ClientParamsBuilder {
  27. }
  28.  
  29. @Qualifier
  30. @Retention(RetentionPolicy.RUNTIME)
  31. @Target({
  32. ElementType.TYPE, ElementType.METHOD, ElementType.FIELD,
  33. ElementType.PARAMETER })
  34. public @interface OrderParamsBuilder {
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement