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

org.opalj.fpcf.PropertyStoreFactory.scala Maven / Gradle / Ivy

The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package fpcf

import org.opalj.log.LogContext

/**
 * Common interface implemented by all [[PropertyStore]] factories.
 *
 * @author Michael Eichberg
 */
trait PropertyStoreFactory[PS <: PropertyStore] {

    final def apply[T <: AnyRef](
        key:     Class[T],
        context: T
    )(
        implicit
        logContext: LogContext
    ): PS = {
        apply(PropertyStoreContext(key, context))
    }

    /* abstract */ def apply(
        context: PropertyStoreContext[_ <: AnyRef]*
    )(
        implicit
        logContext: LogContext
    ): PS
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy