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 Summary

    Constructors
    Constructor
    Description
    DocumentAccessProvider(com.yahoo.document.config.DocumentmanagerConfig documentmanagerConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig, com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig policiesConfig, com.yahoo.vespa.config.content.DistributionConfig distributionConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    get()
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DocumentAccessProvider

      @Inject public DocumentAccessProvider(com.yahoo.document.config.DocumentmanagerConfig documentmanagerConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig, com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig policiesConfig, com.yahoo.vespa.config.content.DistributionConfig distributionConfig)
  • 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