Package org.atmosphere.cpr
Interface AnnotationProcessor
-
- All Superinterfaces:
AtmosphereConfigAware
- All Known Implementing Classes:
DefaultAnnotationProcessor,VoidAnnotationProcessor
public interface AnnotationProcessor extends AtmosphereConfigAware
An annotation processor for configuring theAtmosphereFramework.- Author:
- Jeanfrancois Arcand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroy all resources associated with this object.AnnotationProcessorscan(java.io.File rootDir)Scan theFilelooking for classes annotated with Atmosphere's Service annotation.AnnotationProcessorscan(java.lang.String packageName)Scan the package looking for classes annotated with Atmosphere's Service annotation.AnnotationProcessorscanAll()Scan all classes on the classpath looking for classes annotated with Atmosphere's Service annotation.-
Methods inherited from interface org.atmosphere.inject.AtmosphereConfigAware
configure
-
-
-
-
Method Detail
-
scan
AnnotationProcessor scan(java.io.File rootDir) throws java.io.IOException
Scan theFilelooking for classes annotated with Atmosphere's Service annotation.- Parameters:
rootDir- a directory where annotation can possibly be defined- Returns:
- this
- Throws:
java.io.IOException
-
scan
AnnotationProcessor scan(java.lang.String packageName) throws java.io.IOException
Scan the package looking for classes annotated with Atmosphere's Service annotation.- Parameters:
packageName- package name- Returns:
- this
- Throws:
java.io.IOException
-
scanAll
AnnotationProcessor scanAll() throws java.io.IOException
Scan all classes on the classpath looking for classes annotated with Atmosphere's Service annotation.- Returns:
- this
- Throws:
java.io.IOException
-
destroy
void destroy()
Destroy all resources associated with this object. Once destroyed, this object can no longer be used.
-
-