public interface ResourceNameAnalyzer extends Serializable
| Modifier and Type | Method and Description |
|---|---|
String |
getPatchNameFromResource(org.springframework.core.io.Resource resource)
Extracts name from patch represented as
Resource. |
String[] |
getPlatformAndNameFromResourcePath(String resourcePath)
Extracts platform and name from patch represented as
Resource. |
VersionDescriptor |
getVersionFromPatch(Patch patch)
Analyzes name of patch and extracts version from its name.
|
VersionDescriptor |
getVersionFromResource(org.springframework.core.io.Resource resource)
Analyzes name of patch represented as
Resource and extracts version from its name. |
VersionDescriptor getVersionFromResource(org.springframework.core.io.Resource resource)
Resource and extracts version from its name.resource - from we want versionVersionDescriptor getVersionFromPatch(Patch patch)
patch - from we want versionString getPatchNameFromResource(org.springframework.core.io.Resource resource)
Resource.resource - from which we want nameString[] getPlatformAndNameFromResourcePath(String resourcePath)
Resource.resourcePath - resourcePath in example mysql/patch_1.2.sqlCopyright © 2020 FG Forrest, a.s.. All rights reserved.