Tabnine Logo
SessionHolder.clear
Code IndexAdd Tabnine to your IDE (free)

How to use
clear
method
in
org.jboss.weld.servlet.SessionHolder

Best Java code snippets using org.jboss.weld.servlet.SessionHolder.clear (Showing top 3 results out of 315)

origin: errai/errai

@Override
public void deactivateContext() {
 HttpSessionContext sessionContext = beanManager.instance().select(HttpSessionContext.class).get();
 SessionHolder.clear();
 sessionContext.dissociate(simulatedHttpRequest.get());
}

origin: org.jboss.weld.se/weld-se

public void sessionDestroyed(HttpSession session) {
  // Mark the session context and conversation contexts to destroy
  // instances when appropriate
  deactivateSessionDestructionContext(session);
  boolean destroyed = getSessionContext().destroy(session);
  SessionHolder.clear();
  RequestScopedCache.endRequest();
  if (destroyed) {
    // we are outside of a request (the session timed out) and therefore the session was destroyed immediately
    // we can fire the @Destroyed(SessionScoped.class) event immediately
    sessionDestroyedEvent.fire(session);
  } else {
    // the old session won't be available at the time we destroy this request
    // let's store its reference until then
    if (getRequestContext() instanceof HttpRequestContextImpl) {
      HttpServletRequest request = Reflections.<HttpRequestContextImpl> cast(getRequestContext()).getHttpServletRequest();
      request.setAttribute(HTTP_SESSION, session);
    }
  }
}
origin: org.jboss.weld.se/weld-se

SessionHolder.clear();
org.jboss.weld.servletSessionHolderclear

Popular methods of SessionHolder

  • requestInitialized
  • getSession
  • getSessionIfExists
  • sessionCreated

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now