Class OTIOFactory

java.lang.Object
io.opentimeline.OTIOFactory

public class OTIOFactory
extends java.lang.Object
A singleton factory class that helps in creating all OTIO objects. It is expected that the developers use this Factory to create objects and not the Classes' constructors. After creation of each object the Factory adds a PhantomReference of the object to a ReferenceQueue. Whenever the object is Garbage Collected it will be available for polling in the reference queue and the native memory allocated for the object can be freed.

The factory does some minor cleanup everytime you interact with it, but the developers are expected to setup a mechanism to call the cleanUp() method at regular intervals.