Package org.hcjf.service
Interface ServiceSession.ServiceSessionSource
-
- Enclosing class:
- ServiceSession
public static interface ServiceSession.ServiceSessionSourceThis interface provides the generic gateway to find service session by id
-
-
Method Summary
Modifier and Type Method Description <S extends ServiceSession>
SfindSession(java.util.Map<java.lang.String,java.lang.Object> sessionBean)Returns the service session instance rebuilding using the bean as parameter.<S extends ServiceSession>
SfindSession(java.util.UUID sessionId)Returns the service session instance indexed by the id parameter.
-
-
-
Method Detail
-
findSession
<S extends ServiceSession> S findSession(java.util.UUID sessionId)
Returns the service session instance indexed by the id parameter.- Type Parameters:
S- Expected session type.- Parameters:
sessionId- Id to find the session.- Returns:
- Service session instance.
-
findSession
<S extends ServiceSession> S findSession(java.util.Map<java.lang.String,java.lang.Object> sessionBean)
Returns the service session instance rebuilding using the bean as parameter.- Type Parameters:
S- Expected session kind.- Parameters:
sessionBean- Session bean instance.- Returns:
- Service session instance.
-
-