Class ProxyServicesImpl

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.api.Service, org.jboss.weld.serialization.spi.ProxyServices

    public class ProxyServicesImpl
    extends Object
    implements org.jboss.weld.serialization.spi.ProxyServices
    ProxyServices implementation that delegates to the module class loader if the bean class loader cannot be determined
    Author:
    Stuart Douglas, Jozef Hartinger
    • Constructor Detail

      • ProxyServicesImpl

        public ProxyServicesImpl​(org.jboss.modules.Module module)
    • Method Detail

      • getClassLoader

        public ClassLoader getClassLoader​(Class<?> proxiedBeanType)
        Specified by:
        getClassLoader in interface org.jboss.weld.serialization.spi.ProxyServices
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.jboss.weld.bootstrap.api.Service
      • loadBeanClass

        public Class<?> loadBeanClass​(String className)
        Specified by:
        loadBeanClass in interface org.jboss.weld.serialization.spi.ProxyServices
      • defineClass

        public Class<?> defineClass​(Class<?> originalClass,
                                    String s,
                                    byte[] bytes,
                                    int i,
                                    int i1)
                             throws ClassFormatError
        Specified by:
        defineClass in interface org.jboss.weld.serialization.spi.ProxyServices
        Throws:
        ClassFormatError
      • supportsClassDefining

        public boolean supportsClassDefining()
        Specified by:
        supportsClassDefining in interface org.jboss.weld.serialization.spi.ProxyServices