正在加载图片...
Annotation-based Programming deta Entered using an @-tag in comment block Code-assists features will be part of IBM Rational Application Developer Provides another option for development publ.c class He114 色少,⊥ntzf v⊥ aw-typearenote E Purete s hegy ioe . t mameg IBM Software Group I Web Sphere software Scope Level Tags can be placed at different scope levels Class- provides information that is application to the Java type or interface as a whole 是 Field-provides information that is specific to the referenced field within the class Method- provides information that is specific to the referenced method9 IBM Software Group | WebSphere software WebSphere Application Server v6 17 Annotation-based Programming Details ƒ Entered using an @-tag in comment block ƒ Code-assists features will be part of IBM Rational Application Developer ƒ Provides another option for development package com.example.wrd; /** * @ejb.session name="Hello" type="Stateless" view-type=remote jndi￾name="HelloBean" */ public class Hello { /** * @ejb.interface-method view-type=remote */ public String hello(String name) { return "Hello: " + name; } } Example IBM Software Group | WebSphere software WebSphere Application Server v6 18 Scope Level ƒ Tags can be placed at different scope levels Class - provides information that is application to the Java type or interface as a whole. Field - provides information that is specific to the referenced field within the class. Method - provides information that is specific to the referenced method within the class. Java Source File
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有