Package org.jboss.ejb3.annotation

Examples of org.jboss.ejb3.annotation.LocalHomeBinding.jndiBinding()


   public static String getLocalHomeJndiName(EJBContainer container)
   {
      // Use explicitly-specified binding, if defined
      LocalHomeBinding binding = container.getAnnotation(LocalHomeBinding.class);
      if (binding != null)
         return binding.jndiBinding();

      // Use Default JNDI Binding Policy
      return ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultLocalHomeJndiName(
            ProxyFactoryHelper.getDeploymentSummaryFromContainer(container));
   }
View Full Code Here


            // Check for declared @LocalHomeBinding
            LocalHomeBinding binding = ((EJBContainer) container).getAnnotation(LocalHomeBinding.class);
            if (binding != null)
            {
               // Encountered, return
               return binding.jndiBinding();
            }

            // Set local and home for policy
            isHome = true;
            isLocal = true;
View Full Code Here

            // 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

   public static String getLocalHomeJndiName(EJBContainer container)
   {
      // Use explicitly-specified binding, if defined
      LocalHomeBinding binding = container.getAnnotation(LocalHomeBinding.class);
      if (binding != null)
         return binding.jndiBinding();

      // Use Default JNDI Binding Policy
      JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData)container.getXml();
      return smd.getLocalHomeJndiName();
   }
View Full Code Here

      }

      // Populate metadata for @LocalHomeBinding
      if (localHomeBinding != null)
      {
         this.getMetaData().setLocalHomeJndiName(localHomeBinding.jndiBinding());
      }

      /*
       * End Temporary Hack
       */
 
View Full Code Here

/* 458 */       if (businessInterface.getName().equals(localHome.getName()))
/*     */       {
/* 461 */         LocalHomeBinding binding = (LocalHomeBinding)((EJBContainer)container).getAnnotation(LocalHomeBinding.class);
/* 462 */         if (binding != null)
/*     */         {
/* 465 */           return binding.jndiBinding();
/*     */         }
/*     */
/* 469 */         isHome = true;
/* 470 */         isLocal = true;
/*     */       }
View Full Code Here

/*     */         continue;
/*     */       }
/* 481 */       LocalBinding binding = (LocalBinding)((EJBContainer)container).getAnnotation(LocalBinding.class);
/* 482 */       if (binding != null)
/*     */       {
/* 485 */         return binding.jndiBinding();
/*     */       }
/*     */
/* 489 */       isLocal = true;
/*     */     }
/*     */
View Full Code Here

/*     */   {
/* 814 */     Advisor advisor = (Advisor)container;
/*     */
/* 817 */     LocalHomeBinding binding = (LocalHomeBinding)advisor.resolveAnnotation(LocalHomeBinding.class);
/* 818 */     if (binding != null) {
/* 819 */       return binding.jndiBinding();
/*     */     }
/*     */
/* 822 */     return getJndiBindingPolicy(container).getDefaultLocalHomeJndiName(getDeploymentSummaryFromContainer(container));
/*     */   }
/*     */
View Full Code Here

            // Check for declared @LocalHomeBinding
            LocalHomeBinding binding = ((EJBContainer) container).getAnnotation(LocalHomeBinding.class);
            if (binding != null)
            {
               // Encountered, return
               return binding.jndiBinding();
            }

            // Set local and home for policy
            isHome = true;
            isLocal = true;
View Full Code Here

            // 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
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.