Class SessionProcessor
java.lang.Object
com.almis.awe.annotation.processor.session.SessionProcessor
Session annotation processor
- Author:
- dfuentes Created by dfuentes on 20/04/2017.
- See Also:
-
Constructor Summary
ConstructorDescriptionSessionProcessor
(org.springframework.beans.factory.ObjectFactory<AweSession> aweSessionObjectFactory) Autowired constructor -
Method Summary
Modifier and TypeMethodDescription<T> T
getFromSession
(FromSession fromSession, Class<T> clazz) Get parameter from sessionvoid
setToSession
(ToSession toSession, Object o) Add parameter to session
-
Constructor Details
-
SessionProcessor
public SessionProcessor(org.springframework.beans.factory.ObjectFactory<AweSession> aweSessionObjectFactory) Autowired constructor- Parameters:
aweSessionObjectFactory
- Session object factory
-
-
Method Details
-
getFromSession
Get parameter from session- Type Parameters:
T
-- Parameters:
fromSession
- current annotationclazz
- the type to be returned as- Returns:
-
setToSession
Add parameter to session- Parameters:
toSession
-o
-
-