public class DefaultAnnotationProcessor extends 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 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(File rootDir)
Scan the
File looking for classes annotated with Atmosphere's Service annotation. |
AnnotationProcessor |
scan(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 String ANNOTATION_ATTRIBUTE
public void configure(AtmosphereConfig config)
AtmosphereConfigAwareconfigure in interface AtmosphereConfigAwareconfig - AtmosphereConfigpublic AnnotationProcessor scan(File rootDir) throws IOException
AnnotationProcessorFile looking for classes annotated with Atmosphere's Service annotation.scan in interface AnnotationProcessorrootDir - a directory where annotation can possibly be definedIOExceptionpublic AnnotationProcessor scan(String packageName) throws IOException
AnnotationProcessorscan in interface AnnotationProcessorpackageName - package nameIOExceptionpublic AnnotationProcessor scanAll() throws IOException
AnnotationProcessorscanAll in interface AnnotationProcessorIOExceptionpublic void destroy()
AnnotationProcessordestroy in interface AnnotationProcessorCopyright © 2016. All rights reserved.