12345678910111213141516171819202122232425 |
- package com.example.fms.service;
- import lombok.RequiredArgsConstructor;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.stereotype.Service;
- /**
- * @Author xiexiang
- * @Date 2023/10/20
- */
- @Slf4j
- @Service
- @RequiredArgsConstructor
- public class FileFactory {
- public static IFileFactory createObject(Integer sourceId){
- IFileFactory factoryObject = null;
- switch(sourceId){
- case 1:
- return factoryObject;
- default:
- return null;
- }
- }
- }
|