title: MyBatis - ResultHandler is not invoked
body: <p>I followed this example : <a href="https://code.google.com/p/mybatis/wiki/ResultHandlerExample" rel="nofollow">https://code.google.com/p/mybatis/wiki/ResultHandlerExample</a> 
  This is my interface:</p>
  
  <pre><code>public interface CountryDirRdbMapper {
      public static class CountryDirBaseItemWithText {
          public CountryDirBaseItem baseItem;
      }
      public List&lt;CountryDirBaseItem&gt; select(ResultHandler handler);
  }
  </code></pre>
  
  <p>This is my xml mapper</p>
  
  <pre><code>  &lt;resultMap id="readItemsRM" type="CountryDirRdbMapper$CountryDirBaseItemWithText"&gt;
          &lt;association property="baseItem" javaType="CountryDirBaseItem"&gt;
              &lt;id property="id" column="Id"/&gt;
              &lt;result property="comment" column="Comment"/&gt;
          &lt;/association&gt;
      &lt;/resultMap&gt;
  </code></pre>
  
  <p>This code form my DAO:</p>
  
  <pre><code>SqlSession session = MyBatisConnectionFactory.getSqlSessionFactory().openSession(true);
  List&lt;CountryDirBaseItem&gt; list;
    try{
         CountryDirRdbMapper mapper = session.getMapper(CountryDirRdbMapper.class);
         class MyResultHandler implements ResultHandler {
             @Override
             public void handleResult(ResultContext context) {
             System.out.println("#########################");
             }
         }
  
      MyResultHandler handler=new MyResultHandler();
        list= mapper.select(handler);
   }  
    finally {
     session.close();
  }
  </code></pre>
  
  <p>However the result handler is never invoked. At the example I follow people say that have the same problem. So how to make it work? Or result handler is not supported in mybatis 3?</p>