1 package org.apache.beehive.controls.runtime.generator.apt; 2 3 20 21 import java.util.Arrays ; 22 import java.util.ArrayList ; 23 import java.util.Collection ; 24 import java.util.Collections ; 25 import java.util.Set ; 26 27 import com.sun.mirror.apt.AnnotationProcessor; 28 import com.sun.mirror.apt.AnnotationProcessorFactory; 29 import com.sun.mirror.apt.AnnotationProcessorEnvironment; 30 import com.sun.mirror.declaration.AnnotationTypeDeclaration; 31 32 public class ControlClientAnnotationProcessorFactory implements AnnotationProcessorFactory 33 { 34 private static final Collection <String > _supportedAnnotations = 35 Collections.unmodifiableCollection( 36 Arrays.asList(new String [] { 37 org.apache.beehive.controls.api.bean.Control.class.getName(), 38 org.apache.beehive.controls.api.bean.ControlReferences.class.getName() 39 })); 40 41 private static final Collection <String > _supportedOptions = 42 Collections.unmodifiableCollection( 43 Arrays.asList( new String [0] ) ); 44 45 public Collection <String > supportedOptions() 46 { 47 return _supportedOptions; 48 } 49 50 public Collection <String > supportedAnnotationTypes() 51 { 52 return _supportedAnnotations; 53 } 54 55 public AnnotationProcessor getProcessorFor(Set <AnnotationTypeDeclaration> atds, 56 AnnotationProcessorEnvironment env) 57 { 58 return new ControlClientAnnotationProcessor(atds, env); 59 } 60 } 61 | Popular Tags |