public class OSGiDefiningClassService extends Object implements org.apache.webbeans.spi.DefiningClassService
| Modifier and Type | Class and Description |
|---|---|
static class |
OSGiDefiningClassService.ClassLoaders |
| Constructor and Description |
|---|
OSGiDefiningClassService(org.apache.webbeans.config.WebBeansContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> Class<T> |
defineAndLoad(String name,
byte[] bytes,
Class<T> proxied)
We prefer to register the proxy in the dedicated cdi classloader but due to classloader rules it is not always possible.
|
ClassLoader |
getProxyClassLoader(Class<?> aClass) |
public OSGiDefiningClassService(org.apache.webbeans.config.WebBeansContext context)
public ClassLoader getProxyClassLoader(Class<?> aClass)
getProxyClassLoader in interface org.apache.webbeans.spi.DefiningClassServicepublic <T> Class<T> defineAndLoad(String name, byte[] bytes, Class<T> proxied)
defineAndLoad in interface org.apache.webbeans.spi.DefiningClassServiceT - proxied type.name - proxy name.bytes - proxy bytecode.proxied - proxied class.Copyright © 2020 The Apache Software Foundation. All rights reserved.