User: fleury  
  Date: 00/05/24 16:30:43

  Modified:    src/java/org/ejboss/container ContainerFactory.java
  Log:
  We now return a Collection with the names of the beans in it
  
  Revision  Changes    Path
  1.3       +15 -3     ejboss/src/java/org/ejboss/container/ContainerFactory.java
  
  Index: ContainerFactory.java
  ===================================================================
  RCS file: 
/products/cvs/ejboss/ejboss/src/java/org/ejboss/container/ContainerFactory.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ContainerFactory.java     2000/03/22 19:17:56     1.2
  +++ ContainerFactory.java     2000/05/24 23:30:42     1.3
  @@ -9,6 +9,8 @@
    */
   
   import java.util.Iterator;
  +import java.util.Collection;
  +import java.util.Vector;
   
   import com.dreambean.ejx.ejb.EjbJar;
   
  @@ -63,12 +65,16 @@
       * @param EjbJar the EjbJar containing all the beans
       *
       */
  -    public void initContainers(EjbJar ejbJar) {
  +    public Collection initContainers(EjbJar ejbJar) {
   
           // Get the enterprise beans
   
           EnterpriseBeans beans = ejbJar.getEnterpriseBeans();
  -
  +        
  +             // We return the list of beans to the caller
  +         
  +        Vector beanNames = new Vector();
  +             
           // Iterate through the enterprise bean instances in the jar
   
           Iterator iterator = beans.iterator();
  @@ -78,8 +84,12 @@
               // Get the Enterprise bean
   
               EnterpriseBean ejb = (EnterpriseBean) iterator.next();
  +
  +            // set the name on the vector for a list of names
   
  -            // For now we deploy a "Container" we should test the type of the bean 
here
  +            beanNames.add(ejb.getEjbName());
  +                     
  +                 // For now we deploy a "Container" we should test the type of the 
bean here
   
               Container container = new Container();
   
  @@ -87,6 +97,8 @@
   
               container.init(ejb, ejbJar);
           }
  +             
  +             return beanNames;  
   
       }
   
  
  
  

Reply via email to