1 23 24 33 34 package com.sun.enterprise; 35 36 import java.util.Collection ; 37 import java.util.Collections ; 38 import java.util.Arrays ; 39 import java.util.Set ; 40 import com.sun.mirror.apt.AnnotationProcessorFactory; 41 import com.sun.mirror.declaration.AnnotationTypeDeclaration; 42 import com.sun.mirror.apt.AnnotationProcessorEnvironment; 43 import com.sun.mirror.apt.AnnotationProcessor; 44 45 import com.sun.enterprise.deployment.backend.DeploymentLogger; 46 47 import com.sun.enterprise.webservice.apt.WebServiceRefAp; 48 49 55 public class AptFactory implements AnnotationProcessorFactory { 56 57 private static final Collection <String > supportedAnnotations 59 = Collections.unmodifiableCollection(Arrays.asList("javax.xml.ws.WebServiceRef")); 60 61 private static final Collection <String > supportedOptions = Collections.emptySet(); 63 64 65 public AptFactory() { 66 DeploymentLogger.get().fine("APT found ServiceRefApf"); 67 } 68 69 72 public Collection <String > supportedAnnotationTypes() { 73 return supportedAnnotations; 74 } 75 76 public Collection <String > supportedOptions() { 77 return supportedOptions; 78 } 79 80 public AnnotationProcessor getProcessorFor( 81 Set <AnnotationTypeDeclaration> atds, 82 AnnotationProcessorEnvironment env) { 83 return new WebServiceRefAp(env); 84 } 85 } 86 | Popular Tags |