test_class.file: webbeans-impl/src/test/java/org/apache/webbeans/service/ClassLoaderProxyServiceTest.java
test_class.identifier: ClassLoaderProxyServiceTest
test_case.body: @Test
      public void defineInProxy() throws NoSuchMethodException
      {
          final Properties config = new Properties();
          config.setProperty(DefiningClassService.class.getName(), ClassLoaderProxyService.class.getName());
          final WebBeansContext context = new WebBeansContext(emptyMap(), config);
          final NormalScopeProxyFactory factory = new NormalScopeProxyFactory(context);
          final ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
          final Class<MyBean> proxyClass = factory.createProxyClass(contextClassLoader, MyBean.class);
          assertNotEquals(contextClassLoader, proxyClass.getClassLoader());
          final ClassLoader proxyLoader = context.getService(DefiningClassService.class).getProxyClassLoader(proxyClass);
          assertEquals(proxyLoader, proxyClass.getClassLoader());
          proxyClass.getMethod("ok", String.class); // this line would fail if not here, no assert needed
      }
test_case.class_method_signature: ClassLoaderProxyServiceTest.defineInProxy()
test_case.full_signature: @Test public void defineInProxy()
test_case.identifier: defineInProxy
test_case.invocations: setProperty getName getName emptyMap getContextClassLoader currentThread createProxyClass assertNotEquals getClassLoader getProxyClassLoader getService assertEquals getClassLoader getMethod
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void defineInProxy()
focal_class.declarator: loader
focal_class.modifier: private final
focal_class.original_string: private final ProxiesClassLoader loader;
focal_class.type: ProxiesClassLoader
focal_class.var_name: loader
focal_class.file: webbeans-impl/src/main/java/org/apache/webbeans/service/ClassLoaderProxyService.java
focal_class.identifier: ClassLoaderProxyService
focal_class.interfaces: implements DefiningClassService
focal_class.class_method_signature: ClassLoaderProxyService.ClassLoaderProxyService(final WebBeansContext context)
focal_class.full_signature: public  ClassLoaderProxyService(final WebBeansContext context)
focal_class.identifier: ClassLoaderProxyService
focal_class.modifiers: public
focal_class.parameters: (final WebBeansContext context)
focal_class.signature:  ClassLoaderProxyService(final WebBeansContext context)
focal_class.class_method_signature: ClassLoaderProxyService.ClassLoaderProxyService(final ProxiesClassLoader loader)
focal_class.full_signature: protected  ClassLoaderProxyService(final ProxiesClassLoader loader)
focal_class.identifier: ClassLoaderProxyService
focal_class.modifiers: protected
focal_class.parameters: (final ProxiesClassLoader loader)
focal_class.signature:  ClassLoaderProxyService(final ProxiesClassLoader loader)
focal_class.class_method_signature: ClassLoaderProxyService.getProxyClassLoader(final Class<?> forClass)
focal_class.full_signature: @Override public ClassLoader getProxyClassLoader(final Class<?> forClass)
focal_class.identifier: getProxyClassLoader
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<?> forClass)
focal_class.return: ClassLoader
focal_class.signature: ClassLoader getProxyClassLoader(final Class<?> forClass)
focal_class.class_method_signature: ClassLoaderProxyService.defineAndLoad(final String name, final byte[] bytecode, final Class<T> proxiedClass)
focal_class.full_signature: @Override public Class<T> defineAndLoad(final String name, final byte[] bytecode, final Class<T> proxiedClass)
focal_class.identifier: defineAndLoad
focal_class.modifiers: @Override public
focal_class.parameters: (final String name, final byte[] bytecode, final Class<T> proxiedClass)
focal_class.return: Class<T>
focal_class.signature: Class<T> defineAndLoad(final String name, final byte[] bytecode, final Class<T> proxiedClass)
focal_method.body: @Override
      public ClassLoader getProxyClassLoader(final Class<?> forClass)
      {
          return loader;
      }
focal_method.class_method_signature: ClassLoaderProxyService.getProxyClassLoader(final Class<?> forClass)
focal_method.full_signature: @Override public ClassLoader getProxyClassLoader(final Class<?> forClass)
focal_method.identifier: getProxyClassLoader
focal_method.modifiers: @Override public
focal_method.parameters: (final Class<?> forClass)
focal_method.return: ClassLoader
focal_method.signature: ClassLoader getProxyClassLoader(final Class<?> forClass)