Interface TransformRegistry

All Known Implementing Classes:
DefaultTransformRegistry

public interface TransformRegistry
  • Method Details

    • hasPendingTransforms

      boolean hasPendingTransforms(String className)
      The named class has transforms that have not been executed yet.
      Parameters:
      className - the name of the class to be transformed.
      Returns:
      true if the class has transforms scheduled. false if not.
    • getTransformData

      List<TransformDescriptor> getTransformData(String className)
      Returns the unmodifiable list of TransformDescriptors for the named class.
      Parameters:
      className - the class for which to retrieve the transformation metadata.
      Returns:
      the list of transformation metadata for the named class; may be empty but never null.
    • getClassNames

      Set<String> getClassNames()
      Returns the names of all classes stored in the registry.
      Returns:
      the unmodifiable set of class names.
    • getCurrentConfiguration

      String getCurrentConfiguration()
      Returns the currently instrumented configuration.
      Returns:
      an XML snippet of the configuration.
    • setCurrentConfiguration

      void setCurrentConfiguration(String xmlDescription)
      Set the current configuration that will be instrumented
      Parameters:
      xmlDescription - an XML snippet describing the current configuration
    • modify

      Set<String> modify(String xmlDescription) throws XMLValidationException
      Modifies class information in the registry according to the xml description.
      Parameters:
      xmlDescription - an XML snippet describing the wanted modifications.
      Returns:
      a set of class names associated with modified TransformDescriptors.
      Throws:
      XMLValidationException - if the supplied XML fails to validate.
    • clearAllTransformData

      Set<String> clearAllTransformData()
      Clears all classes and their corresponding transforms in the registry.
      Returns:
      the set of class names that were cleared.
    • setRevertInstrumentation

      void setRevertInstrumentation(boolean shouldRevert)
      Signify classes are or are not being reverted to their pre instrumentation versions.
      Parameters:
      shouldRevert - true if class instrumentation should be reverted, false otherwise.
    • isRevertIntrumentation

      boolean isRevertIntrumentation()
      Determines if classes should be reverted to their pre instrumentation versions.
      Returns:
      true, if classes should be reverted and false otherwise.