org.atmosphere.cpr
Class AnnotationScanningServletContainerInitializer

java.lang.Object
  extended by org.atmosphere.cpr.AnnotationScanningServletContainerInitializer
All Implemented Interfaces:
javax.servlet.ServletContainerInitializer

public class AnnotationScanningServletContainerInitializer
extends Object
implements javax.servlet.ServletContainerInitializer

A ServletContainerInitializer that scans for annotations, and places them in a map keyed by annotation type in the servlet context. NOTE: Any new Atmosphere's annotation must be hardcoded here.

Author:
Stuart Douglas

Constructor Summary
AnnotationScanningServletContainerInitializer()
           
 
Method Summary
 void onStartup(Set<Class<?>> classes, javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationScanningServletContainerInitializer

public AnnotationScanningServletContainerInitializer()
Method Detail

onStartup

public void onStartup(Set<Class<?>> classes,
                      javax.servlet.ServletContext servletContext)
               throws javax.servlet.ServletException
Specified by:
onStartup in interface javax.servlet.ServletContainerInitializer
Throws:
javax.servlet.ServletException


Copyright © 2014. All Rights Reserved.