Search in sources :

Example 1 with YamlExtension

use of com.newrelic.agent.extension.YamlExtension in project newrelic-java-agent by newrelic.

the class JmxObjectFactoryTest method createExtension.

private Extension createExtension(String path) throws Exception {
    File file = getFile(path);
    BaseConfig config = JmxYmlParserTest.readYml(file);
    return new YamlExtension(getClass().getClassLoader(), "Test", config.getProperties(), true);
}
Also used : AgentHelper.getFile(com.newrelic.agent.AgentHelper.getFile) File(java.io.File) BaseConfig(com.newrelic.agent.config.BaseConfig) YamlExtension(com.newrelic.agent.extension.YamlExtension)

Aggregations

AgentHelper.getFile (com.newrelic.agent.AgentHelper.getFile)1 BaseConfig (com.newrelic.agent.config.BaseConfig)1 YamlExtension (com.newrelic.agent.extension.YamlExtension)1 File (java.io.File)1