Package org.jboss.ejb3.proxy.factory.stateless

Examples of org.jboss.ejb3.proxy.factory.stateless.StatelessLocalProxyFactory


*/
public class ClientJavaEEComponent extends AbstractJavaEEComponent
{
   public ClientJavaEEComponent(String clientName)
   {
      super(new SimpleJavaEEModule(clientName));
   }
View Full Code Here


   private PersistenceUnitDependencyResolver persistenceUnitDependencyResolver;

   public ClientENCInjectionContainer(VFSDeploymentUnit unit, JBossClientMetaData xml, Class<?> mainClass, String applicationClientName, ClassLoader classLoader,
         Context encCtx, PersistenceUnitDependencyResolver persistenceUnitDependencyResolver) throws NamingException
   {
      super(new SimpleJavaEEModule((unit.getParent() != null ? unit.getParent().getSimpleName() : null), unit.getSimpleName()));
      if (mainClass == null)
         throw new NullPointerException("mainClass is mandatory");
      if (applicationClientName == null)
         throw new NullPointerException("applicationClientName is mandatory");
      if (classLoader == null)
View Full Code Here

   }

   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

   }
  
   @Override
   protected StatelessLocalProxyFactory getProxyFactory(LocalBinding binding)
   {
      StatelessLocalProxyFactory factory = (StatelessLocalProxyFactory) this.proxyDeployer.getProxyFactory(binding);

      if (factory == null)
      {
         factory = new StatelessLocalProxyFactory(this, binding);
         try
         {
            factory.init();
         }
         catch (Exception e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

    * @throws Exception
    */
   @Override
   public Object createProxyLocalEjb21(LocalBinding binding, String businessInterfaceType) throws Exception
   {
      StatelessLocalProxyFactory proxyFactory = this.getProxyFactory(binding);
      return proxyFactory.createProxyEjb21(businessInterfaceType);
   }
View Full Code Here

      {
         LocalBinding binding = this.getAnnotation(LocalBinding.class);

         // FIXME: why this binding? Could be another one. (there is only one local binding, but that's another bug)

         StatelessLocalProxyFactory factory = this.getProxyFactory(binding);

         Object proxy = factory.createProxyEjb21(method.getReturnType().getName());

         return proxy;
      }
      else
      // remove
View Full Code Here

   }
  
   @Override
   protected StatelessLocalProxyFactory getProxyFactory(LocalBinding binding)
   {
      StatelessLocalProxyFactory factory = (StatelessLocalProxyFactory) this.proxyDeployer.getProxyFactory(binding);

      if (factory == null)
      {
         factory = new StatelessLocalProxyFactory(this, binding);
         try
         {
            factory.init();
         }
         catch (Exception e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

    * @throws Exception
    */
   @Override
   public Object createProxyLocalEjb21(LocalBinding binding, String businessInterfaceType) throws Exception
   {
      StatelessLocalProxyFactory proxyFactory = this.getProxyFactory(binding);
      return proxyFactory.createProxyEjb21(businessInterfaceType);
   }
View Full Code Here

      {
         LocalBinding binding = this.getAnnotation(LocalBinding.class);

         // FIXME: why this binding? Could be another one. (there is only one local binding, but that's another bug)

         StatelessLocalProxyFactory factory = this.getProxyFactory(binding);

         Object proxy = factory.createProxyEjb21(method.getReturnType().getName());

         return proxy;
      }
      else
      // remove
View Full Code Here

   }
  
   @Override
   protected StatelessLocalProxyFactory getProxyFactory(LocalBinding binding)
   {
      StatelessLocalProxyFactory factory = (StatelessLocalProxyFactory) this.proxyDeployer.getProxyFactory(binding);

      if (factory == null)
      {
         factory = new StatelessLocalProxyFactory(this, binding);
         try
         {
            factory.init();
         }
         catch (Exception e)
         {
            throw new RuntimeException(e);
         }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.proxy.factory.stateless.StatelessLocalProxyFactory

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.