public static class MigrationTask.Externalizer extends AbstractExternalizer<MigrationTask>
Constructor and Description |
---|
Externalizer() |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends MigrationTask>> |
getTypeClasses()
Returns a collection of Class instances representing the types that this
AdvancedExternalizer can marshall.
|
MigrationTask |
readObject(ObjectInput input)
Read an instance from the stream.
|
void |
writeObject(ObjectOutput output,
MigrationTask task)
Write the object reference to the stream.
|
getId
public Set<Class<? extends MigrationTask>> getTypeClasses()
AdvancedExternalizer
public void writeObject(ObjectOutput output, MigrationTask task) throws IOException
Externalizer
output
- the object output to write totask
- the object reference to writeIOException
- if an I/O error occurspublic MigrationTask readObject(ObjectInput input) throws IOException, ClassNotFoundException
Externalizer
Externalizer.writeObject(ObjectOutput, Object)
method. Implementations are free
to create instances of the object read from the stream in any way that they
feel like. This could be via constructor, factory or reflection.input
- the object input to read fromIOException
- if an I/O error occursClassNotFoundException
- if a class could not be foundCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.