Examples of LocalBinding


Examples of org.jboss.ejb3.annotation.LocalBinding

      return proxyFactory.createProxyEjb2x((Serializable) id);
   }

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

Examples of org.jboss.ejb3.annotation.LocalBinding

    * @throws Exception
    * @deprecated       the binding on which this proxy is bound is unspecified
    */
   public Object createLocalProxy(Object id) throws Exception
   {
      LocalBinding binding = getAnnotation(LocalBinding.class);
      return createLocalProxy(id, binding);
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.LocalBinding

   public Object localHomeInvoke(Method method, Object[] args) throws Throwable
   {
      if (method.getName().equals("create"))
      {
         LocalBinding binding = (LocalBinding) resolveAnnotation(LocalBinding.class);
        
         // FIXME: why this binding? Could be another one. (there is only one local binding, but that's another bug)
        
         StatelessLocalProxyFactory factory = new StatelessLocalProxyFactory(this, binding);
         factory.init();
View Full Code Here

Examples of org.jboss.ejb3.annotation.LocalBinding

   }

   protected StatefulHandleImpl getHandle()
   {
      StatefulHandleImpl handle = new StatefulHandleImpl();
      LocalBinding remoteBinding = (LocalBinding) ((Advisor)getContainer()).resolveAnnotation(LocalBinding.class);
      if (remoteBinding != null)
         handle.jndiName = remoteBinding.jndiBinding();

      return handle;
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.LocalBinding

      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

Examples of org.jboss.ejb3.annotation.LocalBinding

   {
      // Initialize
      Advisor advisor = (Advisor) container;

      // See if local binding is explicitly-defined
      LocalBinding localBinding = (LocalBinding) advisor.resolveAnnotation(LocalBinding.class);

      // If none specified
      if (localBinding == null)
      {
         // Get JNDI name from policy
         String name = ProxyFactoryHelper.getJndiBindingPolicy(container).getDefaultLocalJndiName(
               ProxyFactoryHelper.getDeploymentSummaryFromContainer(container));

         if (conflictCheck)
            checkForJndiNamingConflict(container);

         return name;
      }
      // Local Binding was explicitly-specified, use it
      else
      {
         return localBinding.jndiBinding();
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.LocalBinding

      return proxyFactory.createProxyEjb2x((Serializable) id);
   }

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

Examples of org.jboss.ejb3.annotation.LocalBinding

   }

   protected StatelessHandleImpl getHandle()
   {
      StatelessHandleImpl handle = new StatelessHandleImpl();
      LocalBinding remoteBinding = (LocalBinding) ((Advisor)getContainer()).resolveAnnotation(LocalBinding.class);
      if (remoteBinding != null)
         handle.jndiName = remoteBinding.jndiBinding();

      return handle;
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.LocalBinding

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

         LocalBinding binding = (LocalBinding) resolveAnnotation(LocalBinding.class);

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

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

Examples of org.jboss.ejb3.annotation.LocalBinding

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