org.lexgrid.loader.writer.classifier
Class WriterClassifier
java.lang.Object
org.lexgrid.loader.writer.classifier.WriterClassifier
All Implemented Interfaces: org.springframework.batch.classify.Classifier<java.lang.Object,org.springframework.batch.item.ItemWriter>, org.springframework.context.ApplicationContextAware
public class WriterClassifier extends java.lang.Objectimplements org.springframework.batch.classify.Classifier<java.lang.Object,org.springframework.batch.item.ItemWriter>, org.springframework.context.ApplicationContextAware
The Class WriterClassifier.
Author:
Kevin Peterson
Method Summary
org.springframework.batch.item.ItemWriter
classify (java.lang.Object objectToWrite)
protected java.lang.String
getWriterName (java.lang.Object objectToWrite)
Gets the writer name.
void
setApplicationContext (org.springframework.context.ApplicationContext ctx)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
WriterClassifier
public WriterClassifier ()
classify
public org.springframework.batch.item.ItemWriter classify (java.lang.Object objectToWrite)
Specified by: classify
in interface org.springframework.batch.classify.Classifier<java.lang.Object,org.springframework.batch.item.ItemWriter>
getWriterName
protected java.lang.String getWriterName (java.lang.Object objectToWrite)
Gets the writer name.
Parameters: objectToWrite
- the object to write
Returns: the writer name
setApplicationContext
public void setApplicationContext (org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
Specified by: setApplicationContext
in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException
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.
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD