@Override
    public <T> T readObject(Input input, Class<T> type) {
      Hook hook = ponderGlobalPreReadHook(type);
      T result = super.readObject(input, type);
      return ponderGlobalPostReadHook(hook, result);
    }
Provides general-purpose hooks for specific types, as well as a global hook.
ql/src/java/org/apache/hadoop/hive/ql/exec/SerializationUtilities.java