1 25 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.simpleentry; 26 27 import static org.objectweb.easybeans.tests.common.helper.ContextHelper.checkSimpleEntry; 28 29 import javax.annotation.Resource; 30 import javax.annotation.Resources; 31 import javax.ejb.Remote ; 32 import javax.ejb.SessionContext ; 33 import javax.ejb.Stateless ; 34 35 import org.objectweb.easybeans.tests.common.ejbs.base.ItfSimpleEnvEntry; 36 37 43 @Stateless (name="SLSBSimpleEnvEntryReference00") 44 @Remote ({ItfSimpleEnvEntry.class}) 45 @Resources({@Resource(name = "str00", type = java.lang.String .class), 46 @Resource(name = "chr00", type = java.lang.Character .class), 47 @Resource(name = "str00", type = java.lang.Integer .class), 48 @Resource(name = "int00", type = java.lang.Integer .class), 49 @Resource(name = "bol00", type = java.lang.Boolean .class), 50 @Resource(name = "dbl00", type = java.lang.Double .class), 51 @Resource(name = "bte00", type = java.lang.Byte .class), 52 @Resource(name = "shr00", type = java.lang.Short .class), 53 @Resource(name = "lng00", type = java.lang.Long .class), 54 @Resource(name = "flt00", type = java.lang.Float .class)}) 55 @Resource(name = "fltAlone00", type = java.lang.Float .class) 56 public class SLSBSimpleEnvEntryReference00 implements ItfSimpleEnvEntry{ 57 58 61 @Resource 62 private SessionContext sessionContext; 63 64 67 public void checkString00() { 68 checkSimpleEntry(sessionContext, "str00", ENTRY_STRING); 69 } 70 71 74 public void checkCharacter00() { 75 checkSimpleEntry(sessionContext, "chr00", ENTRY_CHARACTER); 76 } 77 78 81 public void checkInteger00() { 82 checkSimpleEntry(sessionContext, "int00", ENTRY_INTEGER); 83 } 84 85 88 public void checkBoolean00() { 89 checkSimpleEntry(sessionContext, "bol00", ENTRY_BOOLEAN); 90 } 91 92 95 public void checkDouble00() { 96 checkSimpleEntry(sessionContext, "dbl00", ENTRY_DOUBLE); 97 } 98 99 102 public void checkByte00() { 103 checkSimpleEntry(sessionContext, "bte00", ENTRY_BYTE); 104 } 105 106 109 public void checkShort00() { 110 checkSimpleEntry(sessionContext, "shr00", ENTRY_SHORT); 111 } 112 113 116 public void checkLong00() { 117 checkSimpleEntry(sessionContext, "lng00", ENTRY_LONG); 118 } 119 120 123 public void checkFloat00() { 124 checkSimpleEntry(sessionContext, "flt00", ENTRY_FLOAT); 126 checkSimpleEntry(sessionContext, "fltAlone00", ENTRY_FLOAT); 128 } 129 130 } 131 | Popular Tags |