1 23 package com.sun.enterprise.deployment.annotation.impl; 24 25 import java.io.File ; 26 import java.io.FileFilter ; 27 import java.io.FileInputStream ; 28 import java.io.IOException ; 29 import java.io.FileNotFoundException ; 30 import java.util.Enumeration ; 31 import java.util.logging.Level ; 32 import java.util.jar.JarFile ; 33 import java.util.jar.JarEntry ; 34 35 import java.nio.channels.Channels ; 36 import java.nio.channels.ReadableByteChannel ; 37 38 import com.sun.enterprise.deployment.ApplicationClientDescriptor; 39 import com.sun.enterprise.deployment.ServiceReferenceDescriptor; 40 41 46 public class AppClientScanner extends ModuleScanner { 47 private ApplicationClientDescriptor descriptor; 48 49 public AppClientScanner(File archiveFile, ApplicationClientDescriptor desc) 50 throws IOException { 51 this(archiveFile, desc, null); 52 } 53 54 61 public AppClientScanner(File archiveFile, ApplicationClientDescriptor desc, 62 ClassLoader classLoader) throws IOException { 63 if (AnnotationUtils.getLogger().isLoggable(Level.FINE)) { 64 AnnotationUtils.getLogger().fine("archiveFile is " + archiveFile); 65 AnnotationUtils.getLogger().fine("classLoader is " + classLoader); 66 } 67 this.descriptor = desc; 68 69 String mainClassName = desc.getMainClassName(); 71 addScanClassName(mainClassName); 72 73 String callbackHandler = desc.getCallbackHandler(); 75 if (callbackHandler != null && !callbackHandler.trim().equals("")) { 76 addScanClassName(desc.getCallbackHandler()); 77 } 78 79 this.classLoader = classLoader; 80 this.archiveFile = archiveFile; 81 } 82 } 83 | Popular Tags |