Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » web » tomcat » security » [javadoc | source]
org.jboss.web.tomcat.security
public class: RunAsListener [javadoc | source]
java.lang.Object
   org.jboss.web.tomcat.security.RunAsListener

All Implemented Interfaces:
    org.apache.catalina.InstanceListener

An InstanceListener used to push/pop the servlet run-as identity for the init/destroy lifecycle events.
Field Summary
public static  ThreadLocal metaDataLocal    There is no api to install an initialized listener so the WebMetaData had to be passed via a thread local. 
Constructor:
 public RunAsListener() 
Method from org.jboss.web.tomcat.security.RunAsListener Summary:
instanceEvent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.web.tomcat.security.RunAsListener Detail:
 public  void instanceEvent(InstanceEvent event) 
    Push the run-as identity on the before init/destroy, pop it on the after init/destroy events.