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