fix(bdev.batch): 배치 마법사가 실행환경에 없는 옛 패키지로 bean 의 class 속성을 생성하는 문제 수정 - #160
Merged
eGovFrameSupport merged 1 commit intoSep 18, 2026
Conversation
wantaekchoi
force-pushed
the
fix/batch-wizard-generates-old-package
branch
from
September 10, 2026 10:57
236e39a to
a64e085
Compare
eGovFrameSupport
approved these changes
Sep 18, 2026
swanpark8538
added a commit
that referenced
this pull request
Sep 18, 2026
배치 Job 생성 마법사가 Job XML 에 기록하는 실행환경 클래스명이 문자열 리터럴로 21곳에 흩어져 있어, 실행환경의 패키지가 바뀔 때 일부만 고쳐지고 나머지가 누락되기 쉬웠다(#160 의 원인). 클래스명을 DefaultJobRW 의 상수로 모으고, 패키지 접두어는 EGOV_BAT_CORE_PACKAGE 하나에서 만들도록 한다. 생성되는 XML 의 값은 바뀌지 않는다. - DefaultJobRW: EGOV_BAT_CORE_PACKAGE 와 실행환경 클래스 상수 9개 추가, EGOV_JDBC_BATCH_ITEM_WRITER_CLASS 도 같은 접두어에서 만들도록 변경 - AppendBatchReaderWriterBeanOperation: 리터럴 19곳을 상수 참조로 교체 - CreateBatchJobXMLFileOperation: EgovOutputFileListener, EgovDecider 2곳을 상수 참조로 교체 Refs: #160
Collaborator
|
기여해 주셔서 감사합니다. 옮기신 클래스명 10개가 egovframe-runtime 의 main 에 모두 실재하는 것과, 저장소와 배치 예제 zip 에 검토하면서 클래스명 리터럴을 상수로 모았습니다(22692b0). 전자정부 표준프레임워크에 기여해 주셔서 감사합니다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
수정 사유 Reason for modification
수정된 소스 내용 Modified source
배치 마법사가 생성하는 Job 설정 XML 에
egovframework.brte.…로 시작하는 bean 의 class 값이 들어갑니다. 실행환경 저장소에는 그 패키지의 java 파일이 하나도 없습니다.이 저장소에서:
배치 프로젝트 템플릿이 받는 배치 의존성은
egovframe-rte-bat-core이고, 그 아티팩트가 담는 패키지는org.egovframe.rte.bat입니다. 즉 생성된 프로젝트의 클래스패스에는 새 패키지명만 있고, 이 마법사가 쓴 XML 은 없는 이름을 가리킵니다.이 저장소에서:
실행환경 저장소(
eGovFramework/egovframe-runtime)의main에서:같은 플러그인의 Job Launcher 쪽은 이미 새 패키지명으로 옮겨 두었습니다. 남은 22곳은 그때 함께 옮겨지지 않은 자리입니다.
이 저장소에서:
아래는 실행환경 저장소(
eGovFramework/egovframe-runtime)의main에서 돌린 것입니다.세 파일에서 22곳을 옮겼습니다. 접두어만
egovframework.brte.에서org.egovframe.rte.bat.으로 바뀌고 나머지 경로와 클래스 이름은 그대로입니다. 이렇게 나온 이름 열 개는 각각 실행환경 저장소에 실재합니다. 위 두 번째 명령이 그 열 개를 찍습니다.AS-IS
TO-BE
영향 범위
세 파일 모두 생성기가 XML 로 내보내는 클래스 이름 문자열만 바뀝니다. 마법사의 화면·입력·분기는 건드리지 않았고,
egovframework.brte.접두어를 쓰는 곳은 저장소에 더 남지 않았습니다.