com.opensymphony.xwork.apt
Class XWorkProcessorFactory

java.lang.Object
  extended by com.opensymphony.xwork.apt.XWorkProcessorFactory
All Implemented Interfaces:
com.sun.mirror.apt.AnnotationProcessorFactory

public class XWorkProcessorFactory
extends Object
implements com.sun.mirror.apt.AnnotationProcessorFactory

XWorkProcessorFactory

Version:
$Id: XWorkProcessorFactory.java 860 2006-03-03 16:10:09 +0100 (Fri, 03 Mar 2006) rainerh $
Author:
Rainer Hermanns

Constructor Summary
XWorkProcessorFactory()
           
 
Method Summary
static
<T> Collection<T>
createCollection(T... args)
           
 com.sun.mirror.apt.AnnotationProcessor getProcessorFor(Set<com.sun.mirror.declaration.AnnotationTypeDeclaration> declarations, com.sun.mirror.apt.AnnotationProcessorEnvironment env)
          Returns an annotations processor for a set of annotations types.
 Collection<String> supportedAnnotationTypes()
          Returns the names of the annotations types supported by this factory.
 Collection<String> supportedOptions()
          Returns the options recognized by this factory or by any of the processors it may create.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XWorkProcessorFactory

public XWorkProcessorFactory()
Method Detail

supportedOptions

public Collection<String> supportedOptions()
Returns the options recognized by this factory or by any of the processors it may create.

Specified by:
supportedOptions in interface com.sun.mirror.apt.AnnotationProcessorFactory
Returns:
the options recognized by this factory or by any of the processors it may create, or an empty collection if none.

supportedAnnotationTypes

public Collection<String> supportedAnnotationTypes()
Returns the names of the annotations types supported by this factory.

Specified by:
supportedAnnotationTypes in interface com.sun.mirror.apt.AnnotationProcessorFactory
Returns:
the names of the annotations types supported by this factory.

getProcessorFor

public com.sun.mirror.apt.AnnotationProcessor getProcessorFor(Set<com.sun.mirror.declaration.AnnotationTypeDeclaration> declarations,
                                                              com.sun.mirror.apt.AnnotationProcessorEnvironment env)
Returns an annotations processor for a set of annotations types.

Specified by:
getProcessorFor in interface com.sun.mirror.apt.AnnotationProcessorFactory
Parameters:
declarations - The type declarations for the annotations types to be processed.
env - The environment to use during processing.
Returns:
an annotations processor for the given annotations types, or null if the types are not supported or the processor cannot be created.

createCollection

public static <T> Collection<T> createCollection(T... args)

XWork Project Page