FileFactory.java 530 B

12345678910111213141516171819202122232425
  1. package com.example.fms.service;
  2. import lombok.RequiredArgsConstructor;
  3. import lombok.extern.slf4j.Slf4j;
  4. import org.springframework.stereotype.Service;
  5. /**
  6. * @Author xiexiang
  7. * @Date 2023/10/20
  8. */
  9. @Slf4j
  10. @Service
  11. @RequiredArgsConstructor
  12. public class FileFactory {
  13. public static IFileFactory createObject(Integer sourceId){
  14. IFileFactory factoryObject = null;
  15. switch(sourceId){
  16. case 1:
  17. return factoryObject;
  18. default:
  19. return null;
  20. }
  21. }
  22. }