|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IProcessingComponentManager
A component management strategy used by a Controller.
| Method Summary | |
|---|---|
void |
dispose()
Called upon disposal of the controller. |
void |
init(IControllerContext context,
Map<String,Object> attributes,
ProcessingComponentConfiguration... configurations)
Called upon initialization of the Controller. |
IProcessingComponent |
prepare(Class<? extends IProcessingComponent> clazz,
String id,
Map<String,Object> inputAttributes,
Map<String,Object> outputAttributes)
Prepares a component for processing. |
void |
recycle(IProcessingComponent component,
String id)
Called after processing completed. |
| Method Detail |
|---|
void init(IControllerContext context,
Map<String,Object> attributes,
ProcessingComponentConfiguration... configurations)
Controller.
context - controller contextattributes - global initialization attributes provided to the controllerconfigurations - component configurations provided to the controller
IProcessingComponent prepare(Class<? extends IProcessingComponent> clazz,
String id,
Map<String,Object> inputAttributes,
Map<String,Object> outputAttributes)
clazz - class of the component to prepareid - Identifier of the component to prepare. May be null.inputAttributes - input attributes for all components requested to perform
processing. Both Init- and Processing-time attributes
will be provided. Managers must not modify this map.outputAttributes - storage for output attributes
void recycle(IProcessingComponent component,
String id)
component - Component instance returned from prepare(java.lang.Class extends org.carrot2.core.IProcessingComponent>, java.lang.String, java.util.Map, java.util.Map) .id - The same identifier of the component as used in the call to
prepare(java.lang.Class extends org.carrot2.core.IProcessingComponent>, java.lang.String, java.util.Map, java.util.Map) . May be null.void dispose()
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||