Package org.eclipse.jetty.annotations

Examples of org.eclipse.jetty.annotations.AbstractDiscoverableAnnotationHandler


 
  @Test
  public void testAnnotedServlet() throws Exception
 
        _parser.parse(AnnotedServlet.class.getName(), new SimpleResolver());
        AbstractDiscoverableAnnotationHandler annotHandler = (AbstractDiscoverableAnnotationHandler) _parser.getAnnotationHandlers().get(0);
        _sac.getSipMetaData().addDiscoveredAnnotations(annotHandler.getAnnotationList());   
        _sac.getSipMetaData().resolve(_sac);
        SipServletHandler handler = (SipServletHandler) _sac.getServletHandler();
        SipServletHolder[] holders = handler.getSipServlets();
        assertEquals(1, holders.length);
        assertEquals("AnnotedServlet", holders[0].getName());
View Full Code Here

TOP

Related Classes of org.eclipse.jetty.annotations.AbstractDiscoverableAnnotationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.