All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.identityblitz.log.service.ServiceProvider.scala Maven / Gradle / Ivy

The newest version!
package com.identityblitz.log.service

import java.util.ServiceLoader
import com.identityblitz.log.service.spi.LogConfService

/**
 */
object ServiceProvider {

  lazy val confService = {
    val csItr = ServiceLoader.load(classOf[LogConfService]).iterator()
    if(!csItr.hasNext)
      throw new RuntimeException("log configuration service is undefined.")
    csItr.next()
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy