Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package org.jboss.ejb3.deployers;
 /*    */ 
 /*    */ import org.jboss.ejb3.MCDependencyPolicy;
 /*    */ 
 /*    */ public class JBoss5DependencyPolicy extends MCDependencyPolicy
 /*    */ {
 /*    */   public JBoss5DependencyPolicy(JavaEEComponent component)
/*    */   {
/* 38 */     super(component);
/*    */   }
/*    */ 
/*    */   public void addJNDIName(String nameClassLoader loader)
/*    */   {
/* 45 */     addDependency(new JndiDemandMetaData(name, loader));
/*    */   }
/*    */ 
/*    */   public void addDatasource(String jndiName)
/*    */   {
/* 50 */     String ds = jndiName;
/* 51 */     if (ds.startsWith("java:/"))
/*    */     {
/* 53 */       ds = ds.substring(6);
/*    */     }
/* 56 */     else if (ds.startsWith("java:"))
/*    */     {
/* 58 */       ds = ds.substring(5);
/*    */     }
/*    */ 
/* 61 */     String onStr = "jboss.jca:name=" + ds + ",service=DataSourceBinding";
/* 62 */     addDependency(onStr);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
 * Qualified Name:     org.jboss.ejb3.deployers.JBoss5DependencyPolicy
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X