Package org.jboss.ejb3.annotation

Examples of org.jboss.ejb3.annotation.LocalBinding


/*     */
/*     */   private static String getLocalJndiName(Container container, boolean conflictCheck)
/*     */   {
/* 834 */     Advisor advisor = (Advisor)container;
/*     */
/* 837 */     LocalBinding localBinding = (LocalBinding)advisor.resolveAnnotation(LocalBinding.class);
/*     */
/* 840 */     if (localBinding == null)
/*     */     {
/* 843 */       String name = getJndiBindingPolicy(container).getDefaultLocalJndiName(getDeploymentSummaryFromContainer(container));
/*     */
/* 846 */       if (conflictCheck) {
/* 847 */         checkForJndiNamingConflict(container);
/*     */       }
/* 849 */       return name;
/*     */     }
/*     */
/* 854 */     return localBinding.jndiBinding();
/*     */   }
View Full Code Here


/*     */       {
/* 635 */         initParameterTypes = unadvisedMethod.getParameterTypes();
/* 636 */         initParameterValues = args;
/*     */       }
/*     */
/* 639 */       LocalBinding binding = (LocalBinding)resolveAnnotation(LocalBinding.class);
/*     */
/* 641 */       StatefulLocalProxyFactory factory = new StatefulLocalProxyFactory(this, binding);
/* 642 */       factory.init();
/*     */
/* 644 */       Object proxy = factory.createProxy(initParameterTypes, initParameterValues);
View Full Code Here

/*     */   }
/*     */
/*     */   protected StatelessHandleImpl getHandle()
/*     */   {
/* 159 */     StatelessHandleImpl handle = new StatelessHandleImpl();
/* 160 */     LocalBinding remoteBinding = (LocalBinding)((Advisor)getContainer()).resolveAnnotation(LocalBinding.class);
/* 161 */     if (remoteBinding != null) {
/* 162 */       handle.jndiName = remoteBinding.jndiBinding();
/*     */     }
/* 164 */     return handle;
/*     */   }
View Full Code Here

/*     */
/*     */   /** @deprecated */
/*     */   public Object createLocalProxy(Object id)
/*     */     throws Exception
/*     */   {
/*  96 */     LocalBinding binding = (LocalBinding)getAnnotation(LocalBinding.class);
/*  97 */     return createLocalProxy(id, binding);
/*     */   }
View Full Code Here

/*     */   public Object localHomeInvoke(Method method, Object[] args)
/*     */     throws Throwable
/*     */   {
/* 390 */     if (method.getName().equals("create"))
/*     */     {
/* 392 */       LocalBinding binding = (LocalBinding)resolveAnnotation(LocalBinding.class);
/*     */
/* 396 */       StatelessLocalProxyFactory factory = new StatelessLocalProxyFactory(this, binding);
/* 397 */       factory.init();
/*     */
/* 399 */       Object proxy = factory.createProxy();
View Full Code Here

/*     */   }
/*     */
/*     */   protected StatefulHandleImpl getHandle()
/*     */   {
/* 166 */     StatefulHandleImpl handle = new StatefulHandleImpl();
/* 167 */     LocalBinding remoteBinding = (LocalBinding)((Advisor)getContainer()).resolveAnnotation(LocalBinding.class);
/* 168 */     if (remoteBinding != null) {
/* 169 */       handle.jndiName = remoteBinding.jndiBinding();
/*     */     }
/* 171 */     return handle;
/*     */   }
View Full Code Here

      return proxyFactory.createProxyEjb21(id, businessInterfaceType);
   }
  
   public Object createProxyLocalEjb21(Object id, String businessInterfaceType) throws Exception
   {
      LocalBinding binding = this.getAnnotation(LocalBinding.class);
      return this.createProxyLocalEjb21(id,binding, businessInterfaceType);
   }
View Full Code Here

         {
            initParameterTypes = unadvisedMethod.getParameterTypes();
            initParameterValues = args;
         }

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

         StatefulLocalProxyFactory factory = new StatefulLocalProxyFactory(this, binding);
         factory.init();

         Object proxy = factory.createProxyEjb21(initParameterTypes,
View Full Code Here

   public Object localHomeInvoke(Method method, Object[] args) throws Throwable
   {
      if (method.getName().equals("create"))
      {
         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);
View Full Code Here

      for (Class<?> clazz : locals)
      {
         if (clazz.getName().equals(businessInterface.getName()))
         {
            // Check for declared @LocalBinding
            LocalBinding binding = ((EJBContainer) container).getAnnotation(LocalBinding.class);
            if (binding != null)
            {
               // Encountered, return
               return binding.jndiBinding();
            }

            // Set local for policy
            isLocal = true;
         }
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.annotation.LocalBinding

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.