Interface TransformRegistry

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> clearAllTransformData()
      Clears all classes and their corresponding transforms in the registry.
      java.util.Set<java.lang.String> getClassNames()
      Returns the names of all classes stored in the registry.
      java.lang.String getCurrentConfiguration()
      Returns the currently instrumented configuration.
      java.util.List<TransformDescriptor> getTransformData​(java.lang.String className)
      Returns the unmodifiable list of TransformDescriptors for the named class.
      boolean hasPendingTransforms​(java.lang.String className)
      The named class has transforms that have not been executed yet.
      boolean isRevertIntrumentation()
      Determines if classes should be reverted to their pre instrumentation versions.
      java.util.Set<java.lang.String> modify​(java.lang.String xmlDescription)
      Modifies class information in the registry according to the xml description.
      void setCurrentConfiguration​(java.lang.String xmlDescription)
      Set the current configuration that will be instrumented
      void setRevertInstrumentation​(boolean shouldRevert)
      Signify classes are or are not being reverted to their pre instrumentation versions.
    • Method Detail

      • hasPendingTransforms

        boolean hasPendingTransforms​(java.lang.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

        java.util.List<TransformDescriptor> getTransformData​(java.lang.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

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

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

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

        java.util.Set<java.lang.String> modify​(java.lang.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

        java.util.Set<java.lang.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.