changing field to method
*/
package com.blackducksoftware.integration.hub.detect.bomtool
-import javax.annotation.PostConstruct
-
import org.springframework.beans.factory.annotation.Autowired
import com.blackducksoftware.integration.hub.detect.DetectConfiguration
@@ -50,8 +48,6 @@ abstract class BomTool {
@Autowired
NameVersionNodeTransformer nameVersionNodeTransformer
- protected String sourcePath = ''
-
abstract BomToolType getBomToolType()
abstract boolean isBomToolApplicable()
@@ -63,8 +59,7 @@ abstract class BomTool {
[]
}
- @PostConstruct
- void init() {
- sourcePath = detectConfiguration.sourcePath
+ String getSourcePath() {
+ detectConfiguration.sourcePath
}
}
