aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-12-02 00:06:25 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-12-02 00:06:25 +0100
commitd2fc0df773912f8116bdcea88f4ded6343a13040 (patch)
tree9fc47dbd41fb5e0c684eeb338482f8980a4b82a7 /src/eclipseAgent/lombok/eclipse/agent
parent2aebaff46026dbfa447fd7454472e88c41dc8103 (diff)
parent5bd3abdfe528344f0ae965b99332e20d7581680c (diff)
downloadlombok-d2fc0df773912f8116bdcea88f4ded6343a13040.tar.gz
lombok-d2fc0df773912f8116bdcea88f4ded6343a13040.tar.bz2
lombok-d2fc0df773912f8116bdcea88f4ded6343a13040.zip
Merge branch 'netbeans'
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
index 7d2a28bc..741328f1 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java
@@ -26,6 +26,7 @@ import java.util.Collection;
import java.util.Collections;
import java.util.List;
+import lombok.core.Agent;
import lombok.patcher.Hook;
import lombok.patcher.MethodTarget;
import lombok.patcher.ScriptManager;
@@ -41,15 +42,10 @@ import lombok.patcher.scripts.ScriptBuilder;
* classes in this package for more information about which classes are transformed and how they are
* transformed.
*/
-public class EclipsePatcher {
- private EclipsePatcher() {}
-
- public static void agentmain(@SuppressWarnings("unused") String agentArgs, Instrumentation instrumentation) throws Exception {
- registerPatchScripts(instrumentation, true);
- }
-
- public static void premain(@SuppressWarnings("unused") String agentArgs, Instrumentation instrumentation) throws Exception {
- registerPatchScripts(instrumentation, false);
+public class EclipsePatcher extends Agent {
+ @Override
+ public void runAgent(String agentArgs, Instrumentation instrumentation, boolean injected) throws Exception {
+ registerPatchScripts(instrumentation, injected);
}
private static void registerPatchScripts(Instrumentation instrumentation, boolean reloadExistingClasses) {