org.lexgrid.loader.processor.decorator
Class PostProcessorValidatingDecorator<I,O>

java.lang.Object
  extended by org.lexgrid.loader.logging.LoggingBean
      extended by org.lexgrid.loader.processor.decorator.PostProcessorValidatingDecorator<I,O>
All Implemented Interfaces:
org.springframework.batch.item.ItemProcessor<I,O>

public class PostProcessorValidatingDecorator<I,O>
extends LoggingBean
implements org.springframework.batch.item.ItemProcessor<I,O>

The Class PostProcessorValidatingDecorator.

Author:
Kevin Peterson

Constructor Summary
PostProcessorValidatingDecorator(org.springframework.batch.item.ItemProcessor<I,O> processor)
          Instantiates a new post processor validating decorator.
 
Method Summary
 org.springframework.batch.item.ItemProcessor<I,O> getProcessor()
          Gets the processor.
 org.springframework.batch.item.validator.Validator<O> getValidator()
          Gets the validator.
 O process(I item)
           
 void setProcessor(org.springframework.batch.item.ItemProcessor<I,O> processor)
          Sets the processor.
 void setValidator(org.springframework.batch.item.validator.Validator<O> validator)
          Sets the validator.
 
Methods inherited from class org.lexgrid.loader.logging.LoggingBean
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostProcessorValidatingDecorator

public PostProcessorValidatingDecorator(org.springframework.batch.item.ItemProcessor<I,O> processor)
Instantiates a new post processor validating decorator.

Parameters:
processor - the processor
Method Detail

process

public O process(I item)
          throws java.lang.Exception
Specified by:
process in interface org.springframework.batch.item.ItemProcessor<I,O>
Throws:
java.lang.Exception

getProcessor

public org.springframework.batch.item.ItemProcessor<I,O> getProcessor()
Gets the processor.

Returns:
the processor

setProcessor

public void setProcessor(org.springframework.batch.item.ItemProcessor<I,O> processor)
Sets the processor.

Parameters:
processor - the processor

getValidator

public org.springframework.batch.item.validator.Validator<O> getValidator()
Gets the validator.

Returns:
the validator

setValidator

public void setValidator(org.springframework.batch.item.validator.Validator<O> validator)
Sets the validator.

Parameters:
validator - the new validator

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.