Skip navigation links

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

E47890-01


com.tangosol.coherence.config.xml.processor
Class SpecificInstanceProcessor

java.lang.Object
  extended by com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
      extended by com.tangosol.coherence.config.xml.processor.SpecificInstanceProcessor

All Implemented Interfaces:
ConditionalElementProcessor, ElementProcessor

public class SpecificInstanceProcessor
extends AbstractEmptyElementProcessor

An ElementProcessor that will process an XmlElement defining a ParameterizedBuilder, after which it will eagerly realized to produce an instance of the required type.

Since:
Coherence 12.1.3
Author:
bo 2013.03.11

Nested Class Summary

 

Nested classes/interfaces inherited from class com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
AbstractEmptyElementProcessor.EmptyElementBehavior

 

Constructor Summary
SpecificInstanceProcessor(java.lang.Class clzToRealize)
          Constructs a SpecificInstanceProcessor for the specified Class.
SpecificInstanceProcessor(java.lang.Class clzToRealize, AbstractEmptyElementProcessor.EmptyElementBehavior behavior)
          Constructs a SpecificInstanceProcessor for the specified Class.
SpecificInstanceProcessor(java.lang.Class clzToRealize, java.lang.Object oDefaultValue)
          Constructs a SpecificInstanceProcessor for the specified Class.

 

Method Summary
 java.lang.Object onProcess(ProcessingContext context, XmlElement xmlElement)
          Process an XmlElement to return a specific type of value.

 

Methods inherited from class com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
accepts, isEmptyElement, process

 

Constructor Detail

SpecificInstanceProcessor

public SpecificInstanceProcessor(java.lang.Class clzToRealize)
Constructs a SpecificInstanceProcessor for the specified Class.
Parameters:
clzToRealize - the class that will be instantiated, injected and returned during processing

SpecificInstanceProcessor

public SpecificInstanceProcessor(java.lang.Class clzToRealize,
                                 AbstractEmptyElementProcessor.EmptyElementBehavior behavior)
Constructs a SpecificInstanceProcessor for the specified Class.
Parameters:
clzToRealize - the class that will be instantiated, injected and returned during processing
behavior - the AbstractEmptyElementProcessor.EmptyElementBehavior when an empty XmlElement is encountered

SpecificInstanceProcessor

public SpecificInstanceProcessor(java.lang.Class clzToRealize,
                                 java.lang.Object oDefaultValue)
Constructs a SpecificInstanceProcessor for the specified Class.
Parameters:
clzToRealize - the class that will be instantiated, injected and returned during processing
oDefaultValue - the value to return when an empty XmlElement is encountered

Method Detail

onProcess

public java.lang.Object onProcess(ProcessingContext context,
                                  XmlElement xmlElement)
                           throws ConfigurationException
Process an XmlElement to return a specific type of value.
Specified by:
onProcess in class AbstractEmptyElementProcessor
Parameters:
context - the ProcessingContext in which the XmlElement is being processed
xmlElement - the XmlElement to process
Returns:
a value of type T
Throws:
ConfigurationException - when a configuration problem was encountered

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.