Package org.fcrepo.migration
Interface StreamingFedoraObjectHandler
-
- All Known Implementing Classes:
ConsoleLoggingStreamingFedoraObjectHandler,ObjectAbstractionStreamingFedoraObjectHandler
public interface StreamingFedoraObjectHandler
An interface with methods that are meant to be invoked when processing a fedora 3 object such that every bit of information in that fedora 3 object is exposed to the instance implementing this interface. Instances of this class are expected to be used for a single fedora object, and method calls should not require implementations to maintain state.- Author:
- mdurbin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabortObject(ObjectInfo object)Invoked if processing of the object failed for some reason.voidbeginObject(ObjectInfo object)begin object.voidcompleteObject(ObjectInfo object)A hook called after the object has been completely processed.voidprocessDatastreamVersion(DatastreamVersion dsVersion)Invoked to allow processing of a datastream by this StreamingFedoraObjectHandler.voidprocessDisseminator()Invoked when a "disseminator" element is found in the object (Fedora 2 objects only).voidprocessObjectProperties(ObjectProperties properties)Invoked to allow processing of properties by this StreamingFedoraObjectHandler.
-
-
-
Method Detail
-
beginObject
void beginObject(ObjectInfo object)
begin object.- Parameters:
object- the object info
-
processObjectProperties
void processObjectProperties(ObjectProperties properties)
Invoked to allow processing of properties by this StreamingFedoraObjectHandler.- Parameters:
properties- the properties for the object
-
processDatastreamVersion
void processDatastreamVersion(DatastreamVersion dsVersion)
Invoked to allow processing of a datastream by this StreamingFedoraObjectHandler.- Parameters:
dsVersion- an encapsulation of the datastream version. References to this object must not be used after completeObject() or abortObject() have completed as the resources exposed may no longer be available.
-
processDisseminator
void processDisseminator()
Invoked when a "disseminator" element is found in the object (Fedora 2 objects only).
-
completeObject
void completeObject(ObjectInfo object)
A hook called after the object has been completely processed. This may be useful for any cleanup or finalization routines. Furthermore, once this method invocation is complete, any references provided to prior calls will no longer be in scope.- Parameters:
object- to be completed.
-
abortObject
void abortObject(ObjectInfo object)
Invoked if processing of the object failed for some reason.- Parameters:
object- to be aborted.
-
-