Class ByteCodeEnhancerTimer

All Implemented Interfaces:
ByteCodeEnhancer

public final class ByteCodeEnhancerTimer extends Support implements ByteCodeEnhancer
  • Field Details

  • Constructor Details

    • ByteCodeEnhancerTimer

      public ByteCodeEnhancerTimer(ByteCodeEnhancer delegate)
      Creates an instance.
  • Method Details

    • enhanceClassFile

      public boolean enhanceClassFile(InputStream inByteCode, OutputStream outByteCode) throws EnhancerUserException, EnhancerFatalError
      Description copied from interface: ByteCodeEnhancer
      Enhances a given class according to the JDO meta-data. If the input class has been enhanced or not - the output stream is always written, either with the enhanced class or with the non-enhanced class.
      Specified by:
      enhanceClassFile in interface ByteCodeEnhancer
      Parameters:
      inByteCode - The byte-code of the class to be enhanced.
      outByteCode - The byte-code of the enhanced class.
      Returns:
      true if the class has been enhanced, false otherwise.
      Throws:
      EnhancerUserException
      EnhancerFatalError
    • enhanceClassFile

      public boolean enhanceClassFile(InputStream inByteCode, OutputStreamWrapper outByteCode) throws EnhancerUserException, EnhancerFatalError
      Description copied from interface: ByteCodeEnhancer
      Enhances a given class according to the JDO meta-data. If the input class has been enhanced or not - the output stream is always written, either with the enhanced class or with the non-enhanced class.
      Furthermore the enhancer has to set the classname of the enhanced class to the output stream wrapper object (it's possible to get the input stream without knowing the classname).
      Specified by:
      enhanceClassFile in interface ByteCodeEnhancer
      Parameters:
      inByteCode - The byte-code of the class to be enhanced.
      outByteCode - The byte-code of the enhanced class.
      Returns:
      true if the class has been enhanced, false otherwise.
      Throws:
      EnhancerUserException
      EnhancerFatalError