1 23 24 29 30 package com.sun.enterprise.tools.verifier.apiscan.stdapis; 31 32 import java.util.Collection ; 33 import java.util.Iterator ; 34 import java.util.logging.Logger ; 35 36 import com.sun.enterprise.tools.verifier.apiscan.classfile.ClassFileLoader; 37 import com.sun.enterprise.tools.verifier.apiscan.classfile.ClosureCompilerImpl; 38 39 42 public class ConnectorClosureCompiler extends ClosureCompilerImpl { 43 44 private static Logger logger = Logger.getLogger("apiscan.stdapis"); private static final String myClassName = "ConnectorClosureCompiler"; private String specVersion; 47 48 51 public ConnectorClosureCompiler(String specVersion, ClassFileLoader cfl) { 52 super(cfl); 53 logger.entering(myClassName, "init<>", specVersion); this.specVersion = specVersion; 55 addStandardAPIs(); 56 } 57 58 protected void addStandardAPIs() { 60 String apiName = "connector_" + specVersion; Collection classes = APIRepository.Instance().getClassesFor(apiName); 62 for (Iterator i = classes.iterator(); i.hasNext();) { 63 addExcludedClass((String ) i.next()); 64 } 65 Collection pkgs = APIRepository.Instance().getPackagesFor(apiName); 66 for (Iterator i = pkgs.iterator(); i.hasNext();) { 67 addExcludedPackage((String ) i.next()); 68 } 69 Collection patterns = APIRepository.Instance().getPatternsFor(apiName); 70 for (Iterator i = patterns.iterator(); i.hasNext();) { 71 addExcludedPattern((String ) i.next()); 72 } 73 } 74 } 75 | Popular Tags |