Interface EngineFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface responsible for creating instances of the Engine class.
This interface acts as a factory for producing Engine objects in the context of the specified ProcessorContext.
It abstracts the creation logic, allowing for flexible instantiation of Engine based on the provided context.
Implementations of this interface can define how the Engine is constructed using the given ProcessorContext.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(ProcessorContext processorContext) Creates an instance of theEngineclass based on the providedProcessorContext.
-
Method Details
-
create
Creates an instance of theEngineclass based on the providedProcessorContext. This method serves as a factory function to generateEngineobjects tailored to the given context.- Parameters:
processorContext- the context containing the required components to configure theEngineinstance- Returns:
- a newly created
Engineinstance configured according to the providedProcessorContext
-