Class DocumentAccessProvider
- java.lang.Object
-
- com.yahoo.component.AbstractComponent
-
- com.yahoo.container.core.documentapi.DocumentAccessProvider
-
- All Implemented Interfaces:
com.yahoo.component.Component
,com.yahoo.component.Deconstructable
,com.yahoo.container.di.componentgraph.Provider<VespaDocumentAccess>
,java.lang.Comparable<com.yahoo.component.Component>
public class DocumentAccessProvider extends com.yahoo.component.AbstractComponent implements com.yahoo.container.di.componentgraph.Provider<VespaDocumentAccess>
Lets a lazily initialised DocumentAccess forwarding to a real MessageBusDocumentAccess be injected in containers.- Author:
- jonmv
-
-
Constructor Summary
Constructors Constructor Description DocumentAccessProvider(com.yahoo.document.config.DocumentmanagerConfig documentmanagerConfig, com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig, com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig policiesConfig, com.yahoo.vespa.config.content.DistributionConfig distributionConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deconstruct()
VespaDocumentAccess
get()
-
-
-
Constructor Detail
-
DocumentAccessProvider
@Inject public DocumentAccessProvider(com.yahoo.document.config.DocumentmanagerConfig documentmanagerConfig, com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig, com.yahoo.messagebus.MessagebusConfig messagebusConfig, com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig policiesConfig, com.yahoo.vespa.config.content.DistributionConfig distributionConfig)
-
-
Method Detail
-
get
public VespaDocumentAccess get()
- Specified by:
get
in interfacecom.yahoo.container.di.componentgraph.Provider<VespaDocumentAccess>
-
deconstruct
public void deconstruct()
- Specified by:
deconstruct
in interfacecom.yahoo.component.Deconstructable
- Overrides:
deconstruct
in classcom.yahoo.component.AbstractComponent
-
-