Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.rest.util.processor
Class ProcessorRegistry

java.lang.Object
  extended by com.tangosol.coherence.rest.util.processor.ProcessorRegistry


public class ProcessorRegistry
extends java.lang.Object

A registry for ProcessorFactory instances.

Author:
vp 2011.07.08

Field Summary
static java.lang.String PROCESSOR_REQUEST_REGEX
          Regex pattern that defines the processor request syntax.

 

Constructor Summary
ProcessorRegistry()
          Construct an ProcessorRegistry.
ProcessorRegistry(java.util.Collection colConfig)
          Construct an ProcessorRegistry that includes built-in processors in addition to the specified processors.

 

Method Summary
 InvocableMap.EntryProcessor getProcessor(java.lang.String sRequest)
          Returns a configured processor.
 void register(java.util.Collection colConfig)
          Register a collection of processors.
 void register(java.lang.String sName, java.lang.Class clz)
          Registers processor factory with the given name.
 void register(java.lang.String sName, ProcessorFactory factory)
          Registers a processor factory with the given name.

 

Field Detail

PROCESSOR_REQUEST_REGEX

public static final java.lang.String PROCESSOR_REQUEST_REGEX
Regex pattern that defines the processor request syntax.
See Also:
Constant Field Values

Constructor Detail

ProcessorRegistry

public ProcessorRegistry()
Construct an ProcessorRegistry.

By default the following built-in processors will be registered:


ProcessorRegistry

public ProcessorRegistry(java.util.Collection colConfig)
Construct an ProcessorRegistry that includes built-in processors in addition to the specified processors.
Parameters:
colConfig - processor configurations

Method Detail

getProcessor

public InvocableMap.EntryProcessor getProcessor(java.lang.String sRequest)
Returns a configured processor.
Parameters:
sRequest - the processor request
Returns:
processor

register

public void register(java.lang.String sName,
                     ProcessorFactory factory)
Registers a processor factory with the given name.
Parameters:
sName - the processor name
factory - the processor factory

register

public void register(java.lang.String sName,
                     java.lang.Class clz)
Registers processor factory with the given name.

A DefaultProcessorFactory will be used if the clz parameter is a class that implements InvocableMap.EntryProcessor.

Parameters:
sName - the processor name
clz - the processor or processor factory class

register

public void register(java.util.Collection colConfig)
Register a collection of processors.
Parameters:
colConfig - the processor configurations

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.