Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.ejb3.enc;
 /*    */ 
 /*    */ import java.util.Collection;
 /*    */ import java.util.Iterator;
 /*    */ import java.util.LinkedHashMap;
 /*    */ import javax.naming.NameNotFoundException;
 /*    */ import org.jboss.ejb3.DeploymentScope;
 /*    */ import org.jboss.ejb3.EJBContainer;
 /*    */ import org.jboss.ejb3.Ejb3Deployment;
/*    */ 
/*    */ public class EjbModuleEjbResolver extends DeploymentEjbResolver
/*    */ {
/*    */   protected LinkedHashMap ejbContainers;
/*    */   protected Ejb3Deployment deployment;
/*    */ 
/*    */   public EjbModuleEjbResolver(DeploymentScope deploymentScopeString errorNameLinkedHashMap ejbContainersEjb3Deployment deployment)
/*    */   {
/* 44 */     super(deploymentScope, errorName);
/* 45 */     this.ejbContainers = ejbContainers;
/* 46 */     this.deployment = deployment;
/*    */   }
/*    */ 
/*    */   protected EJBContainer searchDeploymentInternally(String ejbLinkClass businessIntf)
/*    */   {
/* 52 */     for (Iterator i$ = this.ejbContainers.values().iterator(); i$.hasNext(); ) { Object obj = i$.next();
/*    */ 
/* 54 */       EJBContainer container = (EJBContainer)obj;
/* 55 */       if (container.getEjbName().equals(ejbLink))
/*    */       {
/* 57 */         return container;
/*    */       }
/*    */     }
/* 60 */     return null;
/*    */   }
/*    */ 
/*    */   protected EJBContainer searchForEjbContainerInternally(Class businessIntf)
/*    */     throws NameNotFoundException
/*    */   {
/* 67 */     EJBContainer rtnContainer = getEjbContainer(this.deployment, businessIntf);
/* 68 */     return rtnContainer;
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.enc.EjbModuleEjbResolver
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X