Skip to content

Commit

Permalink
refactor(plugins): Move classes with dependency on slf4j out of keel-…
Browse files Browse the repository at this point in the history
…api (#1436)

* refactor(plugins): Move classes with dependency on slf4j out of keel-api

* chore(*): Avoid using lazy initializer as a workaround for plugin incompatibility
  • Loading branch information
luispollo authored Aug 15, 2020
1 parent 2e90128 commit 5de6fa0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import com.netflix.spinnaker.kork.plugins.api.internal.SpinnakerExtensionPoint
*
* @param S the spec type.
* @param R the resolved model type.
*
* If those two are the same, use [SimpleResourceHandler] instead.
*/
interface ResourceHandler<S : ResourceSpec, R : Any> : SpinnakerExtensionPoint {
@JvmDefault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.slf4j.LoggerFactory
abstract class ResolvableResourceHandler<S : ResourceSpec, R : Any>(
private val resolvers: List<Resolver<*>>
) : ResourceHandler<S, R> {
protected val log: Logger by lazy { LoggerFactory.getLogger(javaClass) }
protected val log: Logger = LoggerFactory.getLogger(javaClass)

/**
* Applies any defaults / opinions to the resource as it is resolved into its [desired] state.
Expand Down

0 comments on commit 5de6fa0

Please sign in to comment.