Package org.fcrepo.migration.handlers
Class ConsoleLoggingStreamingFedoraObjectHandler
- java.lang.Object
-
- org.fcrepo.migration.handlers.ConsoleLoggingStreamingFedoraObjectHandler
-
- All Implemented Interfaces:
StreamingFedoraObjectHandler
public class ConsoleLoggingStreamingFedoraObjectHandler extends Object implements StreamingFedoraObjectHandler
A simple StreamingFedoraObjectHandler implementation that simply outputs information to the console. This is likely only useful for debugging or testing other code.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description ConsoleLoggingStreamingFedoraObjectHandler()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
ConsoleLoggingStreamingFedoraObjectHandler
public ConsoleLoggingStreamingFedoraObjectHandler()
-
-
Method Detail
-
beginObject
public void beginObject(ObjectInfo object)
Description copied from interface:StreamingFedoraObjectHandlerbegin object.- Specified by:
beginObjectin interfaceStreamingFedoraObjectHandler- Parameters:
object- the object info
-
processObjectProperties
public void processObjectProperties(ObjectProperties properties)
Description copied from interface:StreamingFedoraObjectHandlerInvoked to allow processing of properties by this StreamingFedoraObjectHandler.- Specified by:
processObjectPropertiesin interfaceStreamingFedoraObjectHandler- Parameters:
properties- the properties for the object
-
processDatastreamVersion
public void processDatastreamVersion(DatastreamVersion dsVersion)
Description copied from interface:StreamingFedoraObjectHandlerInvoked to allow processing of a datastream by this StreamingFedoraObjectHandler.- Specified by:
processDatastreamVersionin interfaceStreamingFedoraObjectHandler- 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
public void processDisseminator()
Description copied from interface:StreamingFedoraObjectHandlerInvoked when a "disseminator" element is found in the object (Fedora 2 objects only).- Specified by:
processDisseminatorin interfaceStreamingFedoraObjectHandler
-
completeObject
public void completeObject(ObjectInfo object)
Description copied from interface:StreamingFedoraObjectHandlerA 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.- Specified by:
completeObjectin interfaceStreamingFedoraObjectHandler- Parameters:
object- to be completed.
-
abortObject
public void abortObject(ObjectInfo object)
Description copied from interface:StreamingFedoraObjectHandlerInvoked if processing of the object failed for some reason.- Specified by:
abortObjectin interfaceStreamingFedoraObjectHandler- Parameters:
object- to be aborted.
-
-