All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.highway2urhell.agent.InstrumentationHolder Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.highway2urhell.agent;

import java.lang.instrument.Instrumentation;

public class InstrumentationHolder {
	
	private static InstrumentationHolder instance = null;
	private Instrumentation inst = null;
	private InstrumentationHolder(){
		
	}
	
	public static InstrumentationHolder getInstance(){
		if(instance ==null){
			synchronized (InstrumentationHolder.class) {
				if(instance == null){
					instance = new InstrumentationHolder();
				}
			}
		}
		return instance;
	}
	
	public void persistInMemory(Instrumentation instrumentation){
    	inst = instrumentation;
    }

	public Instrumentation getInst() {
		return inst;
	}

	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy