Interface MDCAdapterProvider


  • public interface MDCAdapterProvider
    Provider interface for defining custom MDCAdapters.
    Implementations can be activated via service loader mechanism.
    ie.: placing the fully qualified name of the implementing class into META-INF/services/hu.icellmobilsoft.coffee.cdi.logger.mdc.MDCAdapterProvider file
    Since:
    1.1.0
    Author:
    mark.petrenyi
    • Method Detail

      • getAdapter

        MDCAdapter getAdapter()
                       throws Exception
        Provide and initializes MDCAdapter instance. Note that Exception can be thrown.
        Returns:
        MDCAdapter instance
        Throws:
        Exception - if could not initialize MDCAdapter; if thrown another provider will be tried.