differ-core / com.differ.differcore.service / VersionServiceImpl

VersionServiceImpl

@Service class VersionServiceImpl : VersionService

Implementation of VersionService interface.

Service uses org.springframework.core.io.ResourceLoader from springframework to get access to file system. It look up all API version files in file system.

Author
Vladislav Iusiumbeli

Since
1.0.0

Constructors

<init>

Is used for autowire required beans.

VersionServiceImpl(resourceLoader: ResourceLoader)

Functions

getAllVersions

Looking for all available API versions.

fun getAllVersions(): List<String>

getLastVersionFile

Looking last version of API file.

fun getLastVersionFile(): File?

getPenultimateVersionFile

Looking penultimate version of API file.

fun getPenultimateVersionFile(): File?

getVersionFile

Looking specified version of API file.

fun getVersionFile(version: String): File?

init

fun init(): Unit