<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    編程生活

       :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      113 隨筆 :: 0 文章 :: 18 評論 :: 0 Trackbacks
    見下面的文檔描述:
    The EJB 3.0 programming model supports the use of generics in the business interface at the class level.

    BEA recommends as a best practice that you first define a super-interface that uses the generics, and then have the actual business interface extend this super-interface with a specific data type.

    The following example shows how to do this. First program the super-interface that uses generics:

      public interface RootI<T> {
        public T getObject();
    public void updateObject(T object);
    }

    Then program the actual business interface to extend Root*<T> for a particular data type:

      @Remote
    public interface StatelessI extends RootI<String> { }

    Finally, program the actual stateless session bean to implement the business interface; use the specified data type, in this case String, in the implementation of the methods:

      @Stateless
    public class StatelessSample implements StatelessI {
    public String getObject() {
    return null;
    }
    public void updateObject(String object) {
    }
    }
    posted on 2008-04-08 13:47 wilesun 閱讀(261) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 国产片AV片永久免费观看| 久久国产精品免费专区| 成年女人男人免费视频播放| 久久亚洲精品人成综合网| 99蜜桃在线观看免费视频网站| 久久伊人久久亚洲综合| 性xxxxx大片免费视频| 亚洲高清在线mv| 久久久久久精品免费免费自慰| 亚洲人成伊人成综合网久久| 18勿入网站免费永久| 亚洲乱码在线视频| 国产免费私拍一区二区三区| 爱情岛论坛免费视频| 亚洲精品无码久久久久去q| 好久久免费视频高清| 亚洲午夜精品国产电影在线观看| 国产va精品免费观看| 国产亚洲精品2021自在线| 国产成人亚洲影院在线观看| 大地资源在线资源免费观看| 亚洲天堂一区二区三区四区| 成人五级毛片免费播放| 一级视频在线免费观看| 久久久久亚洲AV成人无码| 啦啦啦中文在线观看电视剧免费版| 国产亚洲Av综合人人澡精品| 亚洲色欲久久久综合网| 国产成人精品免费视频动漫| 国产亚洲美女精品久久久久| 久久青青草原亚洲AV无码麻豆 | 97国产在线公开免费观看| 亚洲乱码一二三四区乱码| 亚洲高清国产拍精品青青草原 | a级片免费在线观看| 亚洲国产精品日韩在线观看| 国产一区在线观看免费| 免费无码又爽又刺激网站直播| 精品亚洲成在人线AV无码| 国产精品亚洲mnbav网站| 无码精品A∨在线观看免费|