<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)  編輯  收藏

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


    網站導航:
     
    主站蜘蛛池模板: 窝窝影视午夜看片免费| 亚洲色大成网站www永久男同| 免费福利在线观看| 免费va人成视频网站全| 亚洲高清一区二区三区电影| 妞干网免费视频观看| 亚洲色成人网站WWW永久四虎 | 国产婷婷综合丁香亚洲欧洲| 亚洲一级免费毛片| 亚洲AV一二三区成人影片| 国产h视频在线观看网站免费| 亚洲一级毛片中文字幕| 处破痛哭A√18成年片免费| 亚洲精品色播一区二区| 国产无遮挡吃胸膜奶免费看视频| 天天综合亚洲色在线精品| 青青青国产色视频在线观看国产亚洲欧洲国产综合 | 国产亚洲美女精品久久| 亚洲国产精品一区二区九九| 国产福利电影一区二区三区,免费久久久久久久精| 免费精品国产自产拍观看| 国产大片免费天天看| 亚洲高清中文字幕| 好爽…又高潮了免费毛片| 五月天婷婷精品免费视频| 婷婷亚洲久悠悠色悠在线播放| 亚洲高清中文字幕免费| 国产精品观看在线亚洲人成网| 精品国产亚洲男女在线线电影| 久久久久久AV无码免费网站| 亚洲一线产品二线产品| 免费又黄又爽又猛的毛片| 免费91麻豆精品国产自产在线观看 | 一级成人a毛片免费播放| 久久国产亚洲精品| 亚洲av高清在线观看一区二区| 无码国产精品一区二区免费vr| 亚洲色欲色欱wwW在线| 亚洲综合色自拍一区| 久久久高清免费视频| 一二三区免费视频|