Class DebuggerFactoryAdapter<T extends DBAnnotatedObject>

java.lang.Object
ghidra.util.database.DebuggerFactoryAdapter<T>
Type Parameters:
T - The DBAnnotatedObject type
All Implemented Interfaces:
DbFactory<T>

public class DebuggerFactoryAdapter<T extends DBAnnotatedObject> extends Object implements DbFactory<T>
Maps DBAnnotatedObjectFactory objects into DbFactory objects that is needed by the DbCache.
  • Constructor Details

  • Method Details

    • instantiate

      public T instantiate(long key)
      Description copied from interface: DbFactory
      Creates a new DatabaseObject of type T for the given key. It is expected that a record for this object already exists in the database. This method is simply creating the unique instance that is associated with that record.
      Specified by:
      instantiate in interface DbFactory<T extends DBAnnotatedObject>
      Parameters:
      key - the database key the database key
      Returns:
      the newly created instance of type T or null if no record found
    • instantiate

      public T instantiate(DBRecord record)
      Description copied from interface: DbFactory
      Creates a new DatabaseObject of type T for the given record.
      Specified by:
      instantiate in interface DbFactory<T extends DBAnnotatedObject>
      Parameters:
      record - the database record to create its associated unique instance of T
      Returns:
      the newly created instance of type T