Allow components to specify Java agents and JVM arguments (#175)

This commit is contained in:
Una
2022-04-05 23:22:24 -07:00
committed by GitHub
parent 8732bea99b
commit dc6340bf38
10 changed files with 136 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
#pragma once
#include <QString>
#include "Library.h"
class Agent;
typedef std::shared_ptr<Agent> AgentPtr;
class Agent {
public:
Agent(LibraryPtr library, QString &argument)
{
m_library = library;
m_argument = argument;
}
public: /* methods */
LibraryPtr library() {
return m_library;
}
QString argument() {
return m_argument;
}
protected: /* data */
/// The library pointing to the jar this Java agent is contained within
LibraryPtr m_library;
/// The argument to the Java agent, passed after an = if present
QString m_argument;
};