public class SimpleProxyServices extends Object implements ProxyServices
ProxyServices
which simply use the
corresponding information from the proxy type. An exception is made for
java.*
and javax.*
packages which are often associated with
the system classloader and a more privileged ProtectionDomain.Constructor and Description |
---|
SimpleProxyServices() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to perform any cleanup needed.
|
ClassLoader |
getClassLoader(Class<?> proxiedBeanType)
Returns the class loader that will load the proxy class which extends or implements the given type.
|
Class<?> |
loadBeanClass(String className)
Deprecated.
|
public ClassLoader getClassLoader(Class<?> proxiedBeanType)
ProxyServices
getClassLoader
in interface ProxyServices
proxiedBeanType
- the base type (class or interface) being proxiedpublic void cleanup()
Service
@Deprecated public Class<?> loadBeanClass(String className)
ProxyServices
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.
loadBeanClass
in interface ProxyServices
className
- the class nameCopyright © 2013 Seam Framework. All Rights Reserved.