Class SourceCacheOperation<S extends SourceMetadata>
java.lang.Object
net.n2oapp.framework.api.event.MetadataChangeListener
net.n2oapp.framework.config.compile.pipeline.operation.SourceCacheOperation<S>
- All Implemented Interfaces:
EventListener,N2oEventListener<MetadataChangedEvent>,MetadataEnvironmentAware,PipelineOperationTypeAware,PipelineOperation<S,,S> org.springframework.context.ApplicationListener<MetadataChangedEvent>
- Direct Known Subclasses:
LocalizedSourceCacheOperation
public class SourceCacheOperation<S extends SourceMetadata>
extends MetadataChangeListener
implements PipelineOperation<S,S>, PipelineOperationTypeAware, MetadataEnvironmentAware
Операция кэширования исходных метаданных в конвейере
-
Constructor Summary
ConstructorsConstructorDescriptionSourceCacheOperation(CacheTemplate<String, S> cacheTemplate, MetadataRegister metadataRegister) -
Method Summary
Modifier and TypeMethodDescriptionexecute(CompileContext<?, ?> context, DataSet data, Supplier<S> supplier, CompileProcessor compileProcessor, BindProcessor bindProcessor, SourceProcessor sourceProcessor) protected StringgetKey(String id, Class<? extends SourceMetadata> sourceClass) protected MetadataRegistervoidvoidhandleMetadataChange(String id, Class<? extends SourceMetadata> sourceClass) voidsetEnvironment(MetadataEnvironment environment) Methods inherited from class net.n2oapp.framework.api.event.MetadataChangeListener
handleEvent, isApplyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface net.n2oapp.framework.api.event.N2oEventListener
onApplicationEvent
-
Constructor Details
-
SourceCacheOperation
public SourceCacheOperation() -
SourceCacheOperation
public SourceCacheOperation(CacheTemplate<String, S> cacheTemplate, MetadataRegister metadataRegister)
-
-
Method Details
-
getPipelineOperationType
- Specified by:
getPipelineOperationTypein interfacePipelineOperationTypeAware
-
execute
public S execute(CompileContext<?, ?> context, DataSet data, Supplier<S> supplier, CompileProcessor compileProcessor, BindProcessor bindProcessor, SourceProcessor sourceProcessor) - Specified by:
executein interfacePipelineOperation<S extends SourceMetadata,S extends SourceMetadata>
-
handleAllMetadataChange
public void handleAllMetadataChange()- Specified by:
handleAllMetadataChangein classMetadataChangeListener
-
handleMetadataChange
- Specified by:
handleMetadataChangein classMetadataChangeListener
-
setEnvironment
- Specified by:
setEnvironmentin interfaceMetadataEnvironmentAware
-
getKey
-
getMetadataRegister
-