public class SimpleProxyServicesextends Objectimplements ProxyServices
ProxyServiceswhich simply use the corresponding information from the proxy type. An exception is made for
javax.*packages which are often associated with the system classloader and a more privileged ProtectionDomain.
|Constructor and Description|
|Modifier and Type||Method and Description|
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
Returns the class loader that will load the proxy class which extends or implements the given type.
public ClassLoader getClassLoader(Class<?> proxiedBeanType)
public void cleanup()
@Deprecatedpublic Class<?> loadBeanClass(String className)
Loads classes or interfaces extended/implemented by a bean or in particular a proxy class for a bean. This includes application types of the bean as well as Weld types used for proxy classes. Thus the class loader(s) used here must be able to resolve both application classes and Weld implementation classes.
This method is only called during deserialization of a proxy object. It does not necessarily need to use the same class loader that the proxy class itself exists in since
ProxyServices.getClassLoader(Class) will still be used to get the correct class loader for the bean type.
Copyright © 2015. All Rights Reserved.