public final class ExtensionConversionUtility
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CONFIG_DIRECTORY
The default directory where extension files can be placed.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<ExtensionClassAndMethodMatcher> |
convertToEnabledPointCuts(java.util.Collection<Extension> extensions,
boolean custom,
com.newrelic.agent.instrumentation.InstrumentationType type)
Takes in a collection of extensions and returns the converted point cuts.
|
static java.util.List<ExtensionClassAndMethodMatcher> |
convertToEnabledPointCuts(java.util.Collection<Extension> extensions,
boolean custom,
com.newrelic.agent.instrumentation.InstrumentationType type,
boolean isAttsEnabled)
Takes in a collection of extensions and returns the converted point cuts.
|
static java.util.List<ExtensionClassAndMethodMatcher> |
convertToPointCutsForValidation(Extension ext)
Should be used to validate the XML.
|
static java.lang.String |
getClassName(Extension.Instrumentation.Pointcut cut) |
static void |
validateExtensionAttributes(Extension extension)
Validates the extension attributes.
|
public static final java.lang.String DEFAULT_CONFIG_DIRECTORY
public static void validateExtensionAttributes(Extension extension) throws XmlException
extension
- The extension to be validated.XmlException
public static java.util.List<ExtensionClassAndMethodMatcher> convertToPointCutsForValidation(Extension ext) throws XmlException
ext
- The extension read in.XmlException
public static java.util.List<ExtensionClassAndMethodMatcher> convertToEnabledPointCuts(java.util.Collection<Extension> extensions, boolean custom, com.newrelic.agent.instrumentation.InstrumentationType type)
extensions
- The extensions to be converted.custom
- TODOpublic static java.util.List<ExtensionClassAndMethodMatcher> convertToEnabledPointCuts(java.util.Collection<Extension> extensions, boolean custom, com.newrelic.agent.instrumentation.InstrumentationType type, boolean isAttsEnabled)
extensions
- The extensions to be converted.custom
- TODOpublic static java.lang.String getClassName(Extension.Instrumentation.Pointcut cut)