Examples of InterfaceAnalysis


Examples of org.jboss.iiop.rmi.InterfaceAnalysis

/*     */     throws Exception
/*     */   {
/* 244 */     Class[] remoteInterfaces = ProxyFactoryHelper.getRemoteAndBusinessRemoteInterfaces(this.container);
/* 245 */     if (remoteInterfaces.length > 1)
/* 246 */       log.warn("IIOP binding only works on 1 interface, using: " + remoteInterfaces[0].getName());
/* 247 */     InterfaceAnalysis interfaceAnalysis = InterfaceAnalysis.getInterfaceAnalysis(remoteInterfaces[0]);
/* 248 */     this.beanRepositoryIds = interfaceAnalysis.getAllTypeIds();
/*     */
/* 250 */     InterfaceAnalysis homeInterfaceAnalysis = null;
/* 251 */     Class homeInterface = ProxyFactoryHelper.getRemoteHomeInterface(this.container);
/* 252 */     if (homeInterface != null)
/*     */     {
/* 254 */       if (!EJBHome.class.isAssignableFrom(homeInterface))
/* 255 */         throw new IllegalArgumentException("home interface " + homeInterface.getName() + " must extend javax.ejb.EJBHome (EJB3 4.6.8)");
/* 256 */       homeInterfaceAnalysis = InterfaceAnalysis.getInterfaceAnalysis(homeInterface);
/* 257 */       this.homeRepositoryIds = homeInterfaceAnalysis.getAllTypeIds();
/*     */     }
/*     */
/*     */     try
/*     */     {
/* 263 */       this.orb = ((ORB)InitialContextFactory.getInitialContext().lookup("java:/" + CorbaORBService.ORB_NAME));
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.