public class WriterClassifier
extends java.lang.Object
implements org.springframework.batch.classify.Classifier<java.lang.Object,org.springframework.batch.item.ItemWriter>, org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
WriterClassifier() |
Modifier and Type | Method and Description |
---|---|
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) |
public org.springframework.batch.item.ItemWriter classify(java.lang.Object objectToWrite)
classify
in interface org.springframework.batch.classify.Classifier<java.lang.Object,org.springframework.batch.item.ItemWriter>
protected java.lang.String getWriterName(java.lang.Object objectToWrite)
objectToWrite
- the object to writepublic void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException