de.phleisch.app.itsucks.persistence.impl
Class JAXBJobSerialization

java.lang.Object
  extended by de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
      extended by de.phleisch.app.itsucks.persistence.impl.JAXBJobSerialization
All Implemented Interfaces:
JobSerialization, org.springframework.context.ApplicationContextAware

public class JAXBJobSerialization
extends AbstractJobSerialization
implements org.springframework.context.ApplicationContextAware, JobSerialization

This class implements the JobSerialization interface using the default object.serialize feature.

Author:
olli

Field Summary
 
Fields inherited from class de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
mJobFactory
 
Constructor Summary
JAXBJobSerialization()
           
 
Method Summary
 SerializableJobPackage deserialize(java.io.InputStream pInputStream)
          Deserializes a job list from the given input stream.
 BeanConverterManager getBeanConverterManager()
           
 void serialize(SerializableJobPackage pJobList, java.io.OutputStream pOutputStream)
          Serializes the given job list to the given output stream.
 void setApplicationContext(org.springframework.context.ApplicationContext pContext)
           
 void setBeanConverterManager(BeanConverterManager pBeanConverterManager)
           
 
Methods inherited from class de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
deserialize, serialize, setJobFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.phleisch.app.itsucks.persistence.JobSerialization
deserialize, serialize, setJobFactory
 

Constructor Detail

JAXBJobSerialization

public JAXBJobSerialization()
Method Detail

serialize

public void serialize(SerializableJobPackage pJobList,
                      java.io.OutputStream pOutputStream)
               throws java.lang.Exception
Description copied from interface: JobSerialization
Serializes the given job list to the given output stream. The list is only written to the stream, the stream will not be closed.

Specified by:
serialize in interface JobSerialization
Throws:
java.io.IOException
java.lang.Exception

deserialize

public SerializableJobPackage deserialize(java.io.InputStream pInputStream)
                                   throws java.lang.Exception,
                                          java.lang.ClassNotFoundException
Description copied from interface: JobSerialization
Deserializes a job list from the given input stream.

Specified by:
deserialize in interface JobSerialization
Returns:
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.Exception

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext pContext)
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

getBeanConverterManager

public BeanConverterManager getBeanConverterManager()

setBeanConverterManager

public void setBeanConverterManager(BeanConverterManager pBeanConverterManager)


Copyright © 2010. All Rights Reserved.