Examples of DummyContainerContainer


Examples of org.jboss.ejb3.interceptors.test.indirectcontainer.DummyContainerContainer

   @Test
   public void test1() throws Exception
   {
      int previous = DummyInterceptor.getInvocations();
     
      DummyContainerContainer containerContainer = new DummyContainerContainer("Test", "InterceptorContainer", DummyIndirectContainer.class);
      BeanContext<DummyIndirectContainer> interceptorContainer = containerContainer.construct();
      // TODO: why do we need this explicitly, can't the direct container handle this?
      interceptorContainer.getInstance().setBeanContext(interceptorContainer);
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      Class<?> interfaces[] = { Dummy.class };
      Dummy dummy = (Dummy) Proxy.newProxyInstance(loader, interfaces, interceptorContainer.getInstance());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.