org.jboss.cdi.tck.tests.implementation.simple.ee.components
Class IntrospectServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.jboss.cdi.tck.tests.implementation.simple.ee.components.IntrospectServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@WebServlet(value="/test")
public class IntrospectServlet
extends javax.servlet.http.HttpServlet

This servlet is also registered as dependent bean with producer method, field, observer method and disposer method.

See Also:
Serialized Form

Field Summary
static String MODE_DISPOSER_METHOD
           
static String MODE_INJECT
           
static String MODE_OBSERVER_METHOD
           
static String MODE_PRODUCER_FIELD
           
static String MODE_PRODUCER_METHOD
           
 
Constructor Summary
IntrospectServlet()
           
 
Method Summary
 void disposeTamePing(Ping ping)
           
 String getId()
           
 void init()
           
 void observePing(Ping ping)
           
 void observeWildPing(Ping ping, Ping tamePing)
           
 Ping procudeTamePing()
           
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODE_INJECT

public static final String MODE_INJECT
See Also:
Constant Field Values

MODE_PRODUCER_METHOD

public static final String MODE_PRODUCER_METHOD
See Also:
Constant Field Values

MODE_PRODUCER_FIELD

public static final String MODE_PRODUCER_FIELD
See Also:
Constant Field Values

MODE_DISPOSER_METHOD

public static final String MODE_DISPOSER_METHOD
See Also:
Constant Field Values

MODE_OBSERVER_METHOD

public static final String MODE_OBSERVER_METHOD
See Also:
Constant Field Values
Constructor Detail

IntrospectServlet

public IntrospectServlet()
Method Detail

init

@PostConstruct
public void init()
Overrides:
init in class javax.servlet.GenericServlet

service

protected void service(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse resp)
                throws javax.servlet.ServletException,
                       IOException
Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

procudeTamePing

@Produces
@Dependent
public Ping procudeTamePing()

disposeTamePing

public void disposeTamePing(@Disposes
                            Ping ping)

observePing

public void observePing(@Observes
                        Ping ping)

observeWildPing

public void observeWildPing(@Observes
                            Ping ping,
                            Ping tamePing)
Parameters:
ping -
tamePing - Destroyed after observer method invocation

getId

public String getId()
Returns:
id of servlet component or CDI bean


Copyright © 2008-2013 Seam Framework. All Rights Reserved.