public class DefaultAnnotationProcessor extends java.lang.Object implements AnnotationProcessor
AnnotationProcessor that selects between a ServletContextInitializer based scanner, and
a bytecode based scanner based on .
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ANNOTATION_ATTRIBUTE
The attribute name under which the annotations are stored in the servlet context.
|
| Constructor and Description |
|---|
DefaultAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(AtmosphereConfig config)
Configure an AtmosphereFramework object.
|
void |
destroy()
Destroy all resources associated with this object.
|
AnnotationProcessor |
scan(java.io.File rootDir)
Scan the
File looking for classes annotated with Atmosphere's Service annotation. |
AnnotationProcessor |
scan(java.lang.String packageName)
Scan the package looking for classes annotated with Atmosphere's Service annotation.
|
AnnotationProcessor |
scanAll()
Scan all classes on the classpath looking for classes annotated with Atmosphere's Service annotation.
|
public static final java.lang.String ANNOTATION_ATTRIBUTE
public void configure(AtmosphereConfig config)
AtmosphereConfigAwareconfigure in interface AtmosphereConfigAwareconfig - AtmosphereConfigpublic AnnotationProcessor scan(java.io.File rootDir) throws java.io.IOException
AnnotationProcessorFile looking for classes annotated with Atmosphere's Service annotation.scan in interface AnnotationProcessorrootDir - a directory where annotation can possibly be definedjava.io.IOExceptionpublic AnnotationProcessor scan(java.lang.String packageName) throws java.io.IOException
AnnotationProcessorscan in interface AnnotationProcessorpackageName - package namejava.io.IOExceptionpublic AnnotationProcessor scanAll() throws java.io.IOException
AnnotationProcessorscanAll in interface AnnotationProcessorjava.io.IOExceptionpublic void destroy()
AnnotationProcessordestroy in interface AnnotationProcessorCopyright © 2020. All Rights Reserved.