1 19 20 package org.netbeans.modules.j2ee.ejbcore.test; 21 22 import org.netbeans.modules.j2ee.api.ejbjar.EjbJar; 23 import org.netbeans.modules.j2ee.spi.ejbjar.EjbJarFactory; 24 import org.netbeans.modules.j2ee.spi.ejbjar.EjbJarProvider; 25 import org.openide.filesystems.FileObject; 26 27 31 public class EjbJarProviderImpl implements EjbJarProvider { 32 33 private EjbJar ejbModule; 34 35 public EjbJarProviderImpl() { 36 } 37 38 public EjbJar findEjbJar(FileObject fileObject) { 39 return ejbModule; 40 } 41 42 public void setEjbModule(String j2eePlatformVersion, FileObject ddFileObject, FileObject[] sources) { 43 ejbModule = EjbJarFactory.createEjbJar(new EjbJarImplementationImpl(j2eePlatformVersion, ddFileObject, sources)); 44 } 45 46 } 47 | Popular Tags |