Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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

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

All Implemented Interfaces:
ProcessorFactory

public class DefaultProcessorFactory
extends java.lang.Object
implements ProcessorFactory

The default implementation of ProcessorFactory.

This ProcessorFactory implementation is used for processors that require a single String argument in the constructor and require no additional configuration.

Since:
Coherence 3.7.1
Author:
par 2012.03.13

Constructor Summary
DefaultProcessorFactory(java.lang.Class clzProcessor)
          Construct a DefaultProcessorFactory instance.

 

Method Summary
protected  InvocableMap.EntryProcessor createProcessor(java.lang.String sProperty)
          Create and initialize a new processor instance.
protected  java.lang.reflect.Constructor getConstructor(java.lang.reflect.Constructor[] aCtors)
          Search the given constructors for a constructor that accepts a String parameter.
 InvocableMap.EntryProcessor getProcessor(java.lang.String[] asArgs)
          Return a processor instantiated by calling a processor class constructor.

 

Constructor Detail

DefaultProcessorFactory

public DefaultProcessorFactory(java.lang.Class clzProcessor)
Construct a DefaultProcessorFactory instance.
Parameters:
clzProcessor - the processor class

Method Detail

getProcessor

public InvocableMap.EntryProcessor getProcessor(java.lang.String[] asArgs)
Return a processor instantiated by calling a processor class constructor.
Specified by:
getProcessor in interface ProcessorFactory
Parameters:
asArgs - configuration arguments
Returns:
a processor instance
Throws:
java.lang.IllegalArgumentException - if an appropriate constructor cannot be found

createProcessor

protected InvocableMap.EntryProcessor createProcessor(java.lang.String sProperty)
Create and initialize a new processor instance.
Parameters:
sProperty - property to be handled by processor
Returns:
a processor instance

getConstructor

protected java.lang.reflect.Constructor getConstructor(java.lang.reflect.Constructor[] aCtors)
Search the given constructors for a constructor that accepts a String parameter. If found, return the constructor, otherwise return the public default constructor, if available.
Parameters:
aCtors - constructor array
Returns:
default constructor

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


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