Class DocumentAccessProvider

java.lang.Object
com.yahoo.container.core.documentapi.DocumentAccessProvider
All Implemented Interfaces:
com.yahoo.component.Deconstructable, com.yahoo.container.di.componentgraph.Provider<VespaDocumentAccess>

public class DocumentAccessProvider extends Object implements com.yahoo.container.di.componentgraph.Provider<VespaDocumentAccess>
Lets a lazily initialised DocumentAccess that forwards to a MessageBusDocumentAccess be injected in containers.
Author:
jonmv
  • Constructor Details

    • DocumentAccessProvider

      @Inject public DocumentAccessProvider(com.yahoo.document.config.DocumentmanagerConfig documentmanagerConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig)
  • Method Details

    • get

      public VespaDocumentAccess get()
      Specified by:
      get in interface com.yahoo.container.di.componentgraph.Provider<VespaDocumentAccess>
    • deconstruct

      public void deconstruct()
      Specified by:
      deconstruct in interface com.yahoo.component.Deconstructable