package components;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Closeable;
import java.io.IOException;

@Component
public class TopLevelClass implements Closeable {

    @Autowired
    SomeDependency someDependency;

    @Override
    public void close() throws IOException {
        System.out.println("Closing TopLevelClass...");
    }
}
