347110 renamed class transformer methods
This commit is contained in:
parent
18b6a9b3d9
commit
6b2b6c330d
|
@ -23,6 +23,7 @@ import java.io.IOException;
|
|||
import java.io.InputStream;
|
||||
import java.lang.instrument.ClassFileTransformer;
|
||||
import java.lang.instrument.IllegalClassFormatException;
|
||||
import java.lang.instrument.Instrumentation;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.security.CodeSource;
|
||||
|
@ -461,17 +462,44 @@ public class WebAppClassLoader extends URLClassLoader
|
|||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @see addTransformer
|
||||
* @deprecated
|
||||
*/
|
||||
public void addClassFileTransformer(ClassFileTransformer transformer)
|
||||
{
|
||||
_transformers.add(transformer);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @see removeTransformer
|
||||
* @deprecated
|
||||
*/
|
||||
public boolean removeClassFileTransformer(ClassFileTransformer transformer)
|
||||
{
|
||||
return _transformers.remove(transformer);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @see addClassFileTransformer
|
||||
*/
|
||||
public void addTransformer(ClassFileTransformer transformer)
|
||||
{
|
||||
_transformers.add(transformer);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @see removeClassFileTransformer
|
||||
*/
|
||||
public boolean removeTransformer(ClassFileTransformer transformer)
|
||||
{
|
||||
return _transformers.remove(transformer);
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@Override
|
||||
protected Class<?> findClass(final String name) throws ClassNotFoundException
|
||||
|
|
Loading…
Reference in New Issue