API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.instrument. Instrumentation View Source
Author(s)
Since
1.5
Version
Serial
Hierarchy
 Instrumentation
Subinterfaces
Description
public interface Instrumentation
  This class provides services needed to instrument Java programming language code.
See also:   
Methods
Hide/Show inherited methods
public void addTransformer (ClassFileTransformer transformer)
  Registers the supplied transformer.
public void addTransformer (ClassFileTransformer transformer, boolean canRetransform)
  Registers the supplied transformer.
public void appendToBootstrapClassLoaderSearch (JarFile jarfile)
  Specifies a JAR file with instrumentation classes to be defined by the bootstrap class loader.
public void appendToSystemClassLoaderSearch (JarFile jarfile)
  Specifies a JAR file with instrumentation classes to be defined by the system class loader.
public Class getAllLoadedClasses ()
  Returns an array of all classes currently loaded by the JVM.
public Class getInitiatedClasses (ClassLoader loader)
  Returns an array of all classes for which loader is an initiating loader.
public long getObjectSize (Object objectToSize)
  Returns an implementation-specific approximation of the amount of storage consumed by the specified object.
public boolean isModifiableClass (Class<Object> theClass)
  Determines whether a class is modifiable by retransformation or redefinition.
public boolean isNativeMethodPrefixSupported ()
  Returns whether the current JVM configuration supports setting a native method prefix.
public boolean isRedefineClassesSupported ()
  Returns whether or not the current JVM configuration supports redefinition of classes.
public boolean isRetransformClassesSupported ()
  Returns whether or not the current JVM configuration supports retransformation of classes.
public void redefineClasses (ClassDefinition definitions) throws ClassNotFoundException UnmodifiableClassException
  Redefine the supplied set of classes using the supplied class files.
public boolean removeTransformer (ClassFileTransformer transformer)
  Unregisters the supplied transformer.
public void retransformClasses (Class<Object> classes) throws UnmodifiableClassException
  Retransform the supplied set of classes.
public void setNativeMethodPrefix (ClassFileTransformer transformer, String prefix)
  This method modifies the failure handling of native method resolution by allowing retry with a prefix applied to the name.
Fields
Hide/Show inherited fields
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar