コード例 #1
0
 static ReaderWriterResult getOrCreateReaderWriterItem(final StepContext stepContext) {
   ReaderWriterResult result = (ReaderWriterResult) stepContext.getPersistentUserData();
   if (result == null) {
     result = new ReaderWriterResult();
     stepContext.setPersistentUserData(result);
   }
   return result;
 }
コード例 #2
0
 static ReaderWriterResult getReaderWriterItem(final StepContext stepContext) {
   return (ReaderWriterResult) stepContext.getPersistentUserData();
 }