Skip to content

Commit

Permalink
refactor(media-streaming): rename class MediaStreamingBootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Oct 20, 2020
1 parent e9ea525 commit 0ca94d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public void afterInitialization() {

@Bean
@ConditionalOnMissingBean
public Bootstrap bootstrap(VideoRepository videoRepository, FileService fileService) {
return new Bootstrap(videoRepository, fileService, mediaStreamingProperties);
public MediaStreamingBootstrap bootstrap(VideoRepository videoRepository, FileService fileService) {
return new MediaStreamingBootstrap(videoRepository, fileService, mediaStreamingProperties);
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
import java.nio.file.Path;

/**
* Description: Bootstrap, change description here.
* Description: MediaStreamingBootstrap, change description here.
*
* @author Johnny Miller (锺俊), email: [email protected], date: 10/19/2020 2:51 PM
**/
@Slf4j
@RequiredArgsConstructor
public class Bootstrap implements CommandLineRunner {
public class MediaStreamingBootstrap implements CommandLineRunner {
private final VideoRepository videoRepository;
private final FileService fileService;
private final MediaStreamingProperties mediaStreamingProperties;

@PostConstruct
public void afterInitialization() {
log.debug("Bootstrap initialization is done. Start to process videos.");
private void postConstruct() {
log.debug("MediaStreamingBootstrap initialization is done. Start to process videos.");
log.debug("Starting FileWatcher...");
FileWatcher fileWatcher;
try {
Expand Down

0 comments on commit 0ca94d0

Please sign in to comment.