Package org.jboss.ejb3.proxy.factory

Examples of org.jboss.ejb3.proxy.factory.RemoteProxyFactory


   }

   public TomcatInjectionContainer(WebApplication appInfo, DeploymentUnit unit, org.apache.catalina.Context catalinaContext,
         PersistenceUnitDependencyResolver resolver, Set<String> dynamicClassLoaders, JavaEEComponent component, InjectionManager injectionManager)
   {
      super(new SimpleJavaEEModule(appInfo.getName()));

      assert component != null : "component is null";

      this.unit = unit;
      this.appInfo = appInfo;
View Full Code Here


      if(result instanceof JBossGenericBeanMetaData)
      {
         log.warn("FIXME: EJBTHREE-1227: JBossGenericBeanMetaData found for '" + ejbName + "' instead of " + enterpriseBeanMetaDataClass);
         if(enterpriseBeanMetaDataClass.equals(JBossSessionBeanMetaData.class))
         {
            result = new JBossSessionGenericWrapper((JBossGenericBeanMetaData) result);
         }
         else if(enterpriseBeanMetaDataClass.equals(JBossMessageDrivenBeanMetaData.class))
         {
            result = new JBossMessageDrivenBeanGenericWrapper((JBossGenericBeanMetaData) result);
         }
View Full Code Here

    * </p>
    *
    */
   protected void initMetaDataBasedAnnotationRepository()
   {
      this.metadataBasedAnnotationRepo = new AnnotationRepositoryToMetaData(this.beanClass, this.xml, name, this.classloader);
      List<MetaDataBridge<InterceptorMetaData>> interceptorBridges = new ArrayList<MetaDataBridge<InterceptorMetaData>>();
      interceptorBridges.add(new InterceptorMetaDataBridge());
      this.metadataBasedAnnotationRepo.addComponentMetaDataLoaderFactory(new InterceptorComponentMetaDataLoaderFactory(interceptorBridges));
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new AdditiveBeanInterceptorMetaDataBridge(this.beanClass, this.classloader, this.xml));
     
View Full Code Here

         registeredPoolName = PoolDefaults.POOL_IMPLEMENTATION_THREADLOCAL;
      }
      int maxSize = poolAnnotation.maxSize();
      long timeout = poolAnnotation.timeout();
      PoolFactoryRegistry registry = deployment.getPoolFactoryRegistry();
      PoolFactory factory = registry.getPoolFactory(registeredPoolName);
      pool = factory.createPool();
      pool.initialize(this, maxSize, timeout);

      resolveInjectors();
      pool.setInjectors(injectors.toArray(new Injector[injectors.size()]));
   }
View Full Code Here

         // Default the Pool Implementation
         registeredPoolName = PoolDefaults.POOL_IMPLEMENTATION_THREADLOCAL;
      }
      int maxSize = poolAnnotation.maxSize();
      long timeout = poolAnnotation.timeout();
      PoolFactoryRegistry registry = deployment.getPoolFactoryRegistry();
      PoolFactory factory = registry.getPoolFactory(registeredPoolName);
      pool = factory.createPool();
      pool.initialize(this, maxSize, timeout);

      resolveInjectors();
      pool.setInjectors(injectors.toArray(new Injector[injectors.size()]));
View Full Code Here

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

         RemoteBinding[] list = remoteBindings.value();
         for(RemoteBinding binding : list)
         {
            assert binding.jndiBinding().length() != 0 : "jndiBinding not set on binding " + binding;
           
            RemoteProxyFactory factory;
            String factoryImplementationRegistryKey = binding.factory();
            if (factoryImplementationRegistryKey.equals(RemoteBindingDefaults.PROXY_FACTORY_DEFAULT))
            {
               factory = container.getProxyFactory(binding);
            }
            else
            {
               Class<? extends RemoteProxyFactory> remoteFactoryClass = container.getDeployment().getRemoteProxyFactoryRegistry().getProxyFactoryClass(binding.factory());
               Constructor<? extends RemoteProxyFactory> constructor = getConstructor(remoteFactoryClass, container.getClass(), RemoteBinding.class);
               factory = constructor.newInstance(container, binding);
            }
            factory.start();
            proxyFactories.put(binding,factory);
         }
      }

      if (localBinding != null)
      {
         ProxyFactory factory = container.getProxyFactory(localBinding);
         factory.start();
         proxyFactories.put(localBinding,factory);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.proxy.factory.RemoteProxyFactory

Copyright © 2018 www.massapicom. 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.