org.jboss.classloader.spi.translator
Class TranslatorUtils
java.lang.Object
org.jboss.classloader.spi.translator.TranslatorUtils
public class TranslatorUtils
- extends Object
The translator utils/helper.
- Author:
- Ales Justin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslatorUtils
public TranslatorUtils()
applyTranslatorsOnTransform
public static byte[] applyTranslatorsOnTransform(List<org.jboss.util.loading.Translator> translators,
ClassLoader classLoader,
String className,
byte[] byteCode,
ProtectionDomain protectionDomain)
throws Exception
- Apply transformers on transform.
- Parameters:
translators
- the translatorsclassLoader
- the classloaderclassName
- the class namebyteCode
- the byte codeprotectionDomain
- the protection domain
- Returns:
- trabsformed bytes
- Throws:
Exception
- for any error
applyTranslatorsAtUnregister
public static void applyTranslatorsAtUnregister(List<org.jboss.util.loading.Translator> translators,
ClassLoader classLoader)
- Apply translators on classloader unregister / policy shutdown.
- Parameters:
translators
- the translatorsclassLoader
- the policy's classloader
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.