1 25 26 27 package org.objectweb.jonas_lib.genclientstub.modifier; 28 29 import java.util.Iterator ; 30 31 import org.objectweb.jonas_lib.genbase.archive.Application; 32 import org.objectweb.jonas_lib.genbase.archive.Client; 33 import org.objectweb.jonas_lib.genbase.archive.EjbJar; 34 import org.objectweb.jonas_lib.genbase.archive.WebApp; 35 import org.objectweb.jonas_lib.genbase.modifier.AbsApplicationModifier; 36 import org.objectweb.jonas_lib.genclientstub.generator.GeneratorFactory; 37 38 43 public class ApplicationModifier extends AbsApplicationModifier { 44 45 50 public ApplicationModifier(Application archive) { 51 super(archive, GeneratorFactory.getInstance().getConfiguration()); 52 } 53 54 57 protected void init() { 58 59 for (Iterator i = getApplication().getEjbJars(); i.hasNext();) { 61 EjbJar ejbjar = (EjbJar) i.next(); 62 getEjbModifiers().add(new EjbJarModifier(ejbjar)); 63 } 64 65 for (Iterator i = getApplication().getWebApps(); i.hasNext();) { 67 WebApp webapp = (WebApp) i.next(); 68 getWebModifiers().add(new WebAppModifier(webapp)); 69 } 70 71 for (Iterator i = getApplication().getClients(); i.hasNext();) { 73 Client client = (Client) i.next(); 74 getCltModifiers().add(new ClientModifier(client)); 75 } 76 } 77 78 } | Popular Tags |