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

ai.platon.pulsar.skeleton.context.support.BasicPulsarContext.kt Maven / Gradle / Ivy

The newest version!
package ai.platon.pulsar.skeleton.context.support

import ai.platon.pulsar.skeleton.session.BasicPulsarSession
import org.springframework.context.support.AbstractApplicationContext

/**
 * The main entry point for pulsar functionality.
 *
 * A PulsarContext can be used to inject, fetch, load, parse, store Web pages.
 */
open class BasicPulsarContext(
    applicationContext: AbstractApplicationContext
) : AbstractPulsarContext(applicationContext) {

    @Throws(Exception::class)
    override fun createSession(): BasicPulsarSession {
        val session = BasicPulsarSession(this, unmodifiedConfig.toVolatileConfig())
        return session.also { sessions[it.id] = it }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy