1 6 7 package java.lang.instrument; 8 9 import java.io.File ; 10 import java.io.IOException ; 11 12 15 16 38 public interface Instrumentation { 39 55 void 56 addTransformer(ClassFileTransformer transformer); 57 58 71 boolean 72 removeTransformer(ClassFileTransformer transformer); 73 74 84 boolean 85 isRedefineClassesSupported(); 86 87 141 void 142 redefineClasses(ClassDefinition [] definitions) 143 throws ClassNotFoundException , UnmodifiableClassException ; 144 145 150 Class [] 151 getAllLoadedClasses(); 152 153 162 Class [] 163 getInitiatedClasses(ClassLoader loader); 164 165 176 long 177 getObjectSize(Object objectToSize); 178 } 179 | Popular Tags |