Class SessionProcessor

java.lang.Object
com.almis.awe.annotation.processor.session.SessionProcessor

public class SessionProcessor extends Object
Session annotation processor
Author:
dfuentes Created by dfuentes on 20/04/2017.
See Also:
  • Constructor Details

    • SessionProcessor

      public SessionProcessor(org.springframework.beans.factory.ObjectFactory<AweSession> aweSessionObjectFactory)
      Autowired constructor
      Parameters:
      aweSessionObjectFactory - Session object factory
  • Method Details

    • getFromSession

      public <T> T getFromSession(FromSession fromSession, Class<T> clazz)
      Get parameter from session
      Type Parameters:
      T -
      Parameters:
      fromSession - current annotation
      clazz - the type to be returned as
      Returns:
    • setToSession

      public void setToSession(ToSession toSession, Object o)
      Add parameter to session
      Parameters:
      toSession -
      o -