Class AbstractPojoMappingImplementor<M>
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingImplementor<M>
- All Implemented Interfaces:
BackendMappingContext
,MappingImplementor<M>
,BridgeMappingContext
,PojoMassIndexingMappingContext
,PojoScopeMappingContext
,PojoSearchSessionMappingContext
,PojoWorkMappingContext
public abstract class AbstractPojoMappingImplementor<M>
extends Object
implements MappingImplementor<M>, PojoScopeMappingContext, PojoSearchSessionMappingContext
-
Constructor Summary
ConstructorDescriptionAbstractPojoMappingImplementor
(PojoMappingDelegate delegate, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateIndexer
(PojoWorkSessionContext context) createIndexingPlan
(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy) createIndexingPlan
(PojoWorkSessionContext context, PojoIndexingQueueEventSendingPlan sendingPlan) createIndexingQueueEventProcessingPlan
(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, PojoIndexingQueueEventSendingPlan sendingPlan) protected final PojoMappingDelegate
delegate()
protected void
doStop()
final EntityReferenceFactory
hints()
mappedTypeContext
(String mappedTypeName) preStop
(MappingPreStopContext context) Prepare forMappingImplementor.stop()
, executing any operations that needs to be executed before shutdown.final ProjectionRegistry
start
(MappingStartContext context) Start any resource necessary to operate the mapping at runtime.void
stop()
Stop and release any resource necessary to operate the mapping at runtime.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.search.engine.mapper.mapping.spi.MappingImplementor
toConcreteType
Methods inherited from interface org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext
createMassIndexerAgent
-
Constructor Details
-
AbstractPojoMappingImplementor
-
AbstractPojoMappingImplementor
@Deprecated public AbstractPojoMappingImplementor(PojoMappingDelegate delegate, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate) Deprecated.UseAbstractPojoMappingImplementor
. This constructor is only present for backwards compatibility, for mappers that expose a custom entity reference type.- Parameters:
delegate
- ThePojoMappingDelegate
entityReferenceFactoryDelegate
- ThePojoEntityReferenceFactoryDelegate
, used to implement theEntityReferenceFactory
.
-
-
Method Details
-
start
Description copied from interface:MappingImplementor
Start any resource necessary to operate the mapping at runtime.Called by the engine once during bootstrap, after backends and index managers were started.
- Specified by:
start
in interfaceMappingImplementor<M>
- Parameters:
context
- The start context.- Returns:
- A future that completes when the mapper is completely started.
-
preStop
Description copied from interface:MappingImplementor
Prepare forMappingImplementor.stop()
, executing any operations that needs to be executed before shutdown.- Specified by:
preStop
in interfaceMappingImplementor<M>
- Parameters:
context
- The pre-stop context.- Returns:
- A future that completes when pre-stop operations complete.
-
stop
public void stop()Description copied from interface:MappingImplementor
Stop and release any resource necessary to operate the mapping at runtime.Called by the engine once before shutdown.
- Specified by:
stop
in interfaceMappingImplementor<M>
-
hints
- Specified by:
hints
in interfaceBackendMappingContext
-
threadPoolProvider
- Specified by:
threadPoolProvider
in interfacePojoMassIndexingMappingContext
- Returns:
- A
ThreadPoolProvider
.
-
failureHandler
- Specified by:
failureHandler
in interfacePojoMassIndexingMappingContext
- Returns:
- A
FailureHandler
.
-
typeIdentifierResolver
- Specified by:
typeIdentifierResolver
in interfacePojoScopeMappingContext
-
entityReferenceFactoryDelegate
- Specified by:
entityReferenceFactoryDelegate
in interfacePojoMassIndexingMappingContext
- Specified by:
entityReferenceFactoryDelegate
in interfacePojoScopeMappingContext
- Specified by:
entityReferenceFactoryDelegate
in interfacePojoWorkMappingContext
- Returns:
- A
PojoEntityReferenceFactoryDelegate
.
-
entityReferenceFactory
- Specified by:
entityReferenceFactory
in interfaceBackendMappingContext
- Returns:
- A
EntityReferenceFactory
.
-
toDocumentValueConvertContext
- Specified by:
toDocumentValueConvertContext
in interfaceBackendMappingContext
-
projectionRegistry
- Specified by:
projectionRegistry
in interfaceBackendMappingContext
-
mappedTypeContext
- Specified by:
mappedTypeContext
in interfaceBackendMappingContext
-
identifierBridgeToDocumentIdentifierContext
public final IdentifierBridgeToDocumentIdentifierContext identifierBridgeToDocumentIdentifierContext()- Specified by:
identifierBridgeToDocumentIdentifierContext
in interfaceBridgeMappingContext
-
valueBridgeToIndexedValueContext
- Specified by:
valueBridgeToIndexedValueContext
in interfaceBridgeMappingContext
-
createIndexingPlan
public PojoIndexingPlan createIndexingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy) - Specified by:
createIndexingPlan
in interfacePojoSearchSessionMappingContext
-
createIndexingPlan
public PojoIndexingPlan createIndexingPlan(PojoWorkSessionContext context, PojoIndexingQueueEventSendingPlan sendingPlan) - Specified by:
createIndexingPlan
in interfacePojoSearchSessionMappingContext
-
createIndexer
- Specified by:
createIndexer
in interfacePojoSearchSessionMappingContext
-
createIndexingQueueEventProcessingPlan
public PojoIndexingQueueEventProcessingPlan createIndexingQueueEventProcessingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, PojoIndexingQueueEventSendingPlan sendingPlan) - Specified by:
createIndexingQueueEventProcessingPlan
in interfacePojoSearchSessionMappingContext
-
delegate
-
doStop
protected void doStop()
-
AbstractPojoMappingImplementor
.