private void setSessionContext ( Object targetObject , TargetMetaRequest targetMetaRequest ) { if ( isSessionContextAcceptables . contains ( targetMetaRequest . getTargetMetaDef ( ) . getName ( ) ) ) { SessionContextAcceptable myResult = ( SessionContextAcceptable ) targetObject ; SessionContext sessionContext = targetMetaRequest . getSessionContext ( ) ; myResult . setSessionContext ( sessionContext ) ; } else if ( isSessionContextAcceptablesAnnotations . containsKey ( targetMetaRequest . getTargetMetaDef ( ) . getName ( ) ) ) { Method method = isSessionContextAcceptablesAnnotations . get ( targetMetaRequest . getTargetMetaDef ( ) . getName ( ) ) ; try { Object [ ] sessionContexts = new SessionContext [ 1 ] ; sessionContexts [ 0 ] = targetMetaRequest . getSessionContext ( ) ; method . invoke ( targetObject , sessionContexts ) ; } catch ( Exception e ) { Debug . logError ( "[JdonFramework]the target must has method setSessionContext(SessionContext sessionContext) : " + e , module ) ; } } }
WebServiceAccessorImp create sessionContext and save infomation into it