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)
AtmosphereConfigAware
configure
in interface AtmosphereConfigAware
config
- AtmosphereConfig
public AnnotationProcessor scan(File rootDir) throws IOException
AnnotationProcessor
File
looking for classes annotated with Atmosphere's Service annotation.scan
in interface AnnotationProcessor
rootDir
- a directory where annotation can possibly be definedIOException
public AnnotationProcessor scan(String packageName) throws IOException
AnnotationProcessor
scan
in interface AnnotationProcessor
packageName
- package nameIOException
public AnnotationProcessor scanAll() throws IOException
AnnotationProcessor
scanAll
in interface AnnotationProcessor
IOException
public void destroy()
AnnotationProcessor
destroy
in interface AnnotationProcessor
Copyright © 2016. All rights reserved.