Package org.jboss.ejb

Examples of org.jboss.ejb.RemoteImpl


         // Add @Remote to remote and remote business interfaces
         if (remoteClasses.size() > 0)
         {
            Class<?>[] rIntfs = new Class[remoteClasses.size()];
            rIntfs = remoteClasses.toArray(rIntfs);
            addClassAnnotation(container, Remote.class, new RemoteImpl(rIntfs));
         }
      }
   }
View Full Code Here


            // Only one default interface, mark as @Remote and return
            else
            {
               Class<?>[] rtn =
               {(Class<?>) businessInterfaces[0]};
               remoteAnnotation = new RemoteImpl(rtn);
               ((EJBContainer) container).getAnnotations().addClassAnnotation(javax.ejb.Remote.class, remoteAnnotation);
               return rtn;
            }
         }
      }

      // If remotes were found
      if (remoteAndRemoteBusinessInterfaces.size() > 0)
      {
         // Set interfaces and return
         Class<?>[] remotesArray = remoteAndRemoteBusinessInterfaces
               .toArray(new Class[remoteAndRemoteBusinessInterfaces.size()]);
         remoteAnnotation = new RemoteImpl(remotesArray);
         ((Advisor) container).getAnnotations().addClassAnnotation(Remote.class, remoteAnnotation);
         return remoteAnnotation.value();
      }
      // No remotes were found
      else
View Full Code Here

/* 665 */         throw new RuntimeException("Use of empty @Remote on bean " + container.getEjbName() + " with more than one default interface " + businessInterfaces);
/*     */       }
/*     */
/* 671 */       Class[] rtn = { businessInterfaces[0] };
/*     */
/* 673 */       remoteAnnotation = new RemoteImpl(rtn);
/* 674 */       ((EJBContainer)container).getAnnotations().addClassAnnotation(Remote.class, remoteAnnotation);
/* 675 */       return rtn;
/*     */     }
/*     */
/* 681 */     if (remoteAndRemoteBusinessInterfaces.size() > 0)
/*     */     {
/* 684 */       Class[] remotesArray = (Class[])remoteAndRemoteBusinessInterfaces.toArray(new Class[remoteAndRemoteBusinessInterfaces.size()]);
/*     */
/* 686 */       remoteAnnotation = new RemoteImpl(remotesArray);
/* 687 */       ((Advisor)container).getAnnotations().addClassAnnotation(Remote.class, remoteAnnotation);
/* 688 */       return remoteAnnotation.value();
/*     */     }
/*     */
/* 693 */     return new Class[0];
View Full Code Here

/*      */
/*  875 */       if (remoteClasses.size() > 0)
/*      */       {
/*  877 */         Class[] rIntfs = new Class[remoteClasses.size()];
/*  878 */         rIntfs = (Class[])remoteClasses.toArray(rIntfs);
/*  879 */         addClassAnnotation(container, Remote.class, new RemoteImpl(rIntfs));
/*      */       }
/*      */     }
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.RemoteImpl

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.