Defining a service the Spring way.

If we define the VideoFileManager as a @Service, Spring will instantiate an instance during the application startup, and this can easily be referred from other classes using @Autowired:

    @Autowired private VideoFileManager videoFileManager;

No need to implement a Singleton pattern, as Spring IoC will do it for us.