public class ProcessorRegistry extends Object
ProcessorFactory instances.| Modifier and Type | Field and Description |
|---|---|
static String |
PROCESSOR_REQUEST_REGEX
Regex pattern that defines the processor request syntax.
|
| Constructor and Description |
|---|
ProcessorRegistry()
Construct an ProcessorRegistry.
|
ProcessorRegistry(Collection<ProcessorConfig> colConfig)
Construct an ProcessorRegistry that includes built-in processors in
addition to the specified processors.
|
| Modifier and Type | Method and Description |
|---|---|
InvocableMap.EntryProcessor |
getProcessor(String sRequest)
Returns a configured processor.
|
void |
register(Collection<ProcessorConfig> colConfig)
Register a collection of processors.
|
void |
register(String sName,
Class clz)
Registers processor factory with the given name.
|
void |
register(String sName,
ProcessorFactory factory)
Registers a processor factory with the given name.
|
public static final String PROCESSOR_REQUEST_REGEX
public ProcessorRegistry()
By default the following built-in processors will be registered:
public ProcessorRegistry(Collection<ProcessorConfig> colConfig)
colConfig - processor configurationspublic InvocableMap.EntryProcessor getProcessor(String sRequest)
sRequest - the processor requestpublic void register(String sName, ProcessorFactory factory)
sName - the processor namefactory - the processor factorypublic void register(String sName, Class clz)
A DefaultProcessorFactory will be used if the clz
parameter is a class that implements InvocableMap.EntryProcessor.
sName - the processor nameclz - the processor or processor factory classpublic void register(Collection<ProcessorConfig> colConfig)
colConfig - the processor configurations