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.ejb.Remote ; 31 import javax.ejb.SessionContext ; 32 import javax.ejb.Stateless ; 33 34 import org.objectweb.easybeans.tests.common.ejbs.base.ItfSimpleEnvEntry; 35 36 41 @Stateless (name="SLSBSimpleEnvEntryMethodInjection00") 42 @Remote (ItfSimpleEnvEntry.class) 43 public class SLSBSimpleEnvEntryMethodInjection00 implements ItfSimpleEnvEntry { 44 45 48 @Resource 49 private SessionContext sessionContext; 50 51 54 private String strInjection; 55 56 59 private char chrInjection; 60 61 64 private int intInjection; 65 66 69 private boolean bolInjection; 70 71 74 private double dblInjection; 75 76 79 private byte bteInjection; 80 81 84 private short shrInjection; 85 86 89 private long lngInjection; 90 91 94 private float fltInjection; 95 96 100 @Resource(name = "str00") 101 public void setStrInjection(final String value){ 102 strInjection = value; 103 } 104 105 109 @SuppressWarnings ("unused") 110 @Resource(name = "chr00") 111 private void setChrInjection(final char value){ 112 chrInjection = value; 113 } 114 115 119 @Resource(name = "int00") 120 protected void setIntInjection(final int value){ 121 intInjection = value; 122 } 123 124 128 @Resource(name = "bol00") 129 void setBolInjection(final boolean value){ 130 bolInjection = value; 131 } 132 133 137 @Resource(name = "dbl00") 138 public void setDblInjection(final double value){ 139 dblInjection = value; 140 } 141 142 146 @Resource(name = "bte00") 147 public void setBteInjection(final byte value){ 148 bteInjection = value; 149 } 150 151 155 @Resource(name = "shr00") 156 public void setShrInjection(final short value){ 157 shrInjection = value; 158 } 159 160 164 @Resource(name = "lng00") 165 public void setLngInjection(final long value){ 166 lngInjection = value; 167 } 168 169 173 @Resource 174 public void setFltInjection(final float value){ 175 fltInjection = value; 176 } 177 178 181 public void checkString00() { 182 checkSimpleEntry(sessionContext, "str00", strInjection, ENTRY_STRING); 183 } 184 185 188 @SuppressWarnings ("boxing") 189 public void checkCharacter00() { 190 checkSimpleEntry(sessionContext, "chr00", chrInjection, ENTRY_CHARACTER); 191 } 192 193 196 @SuppressWarnings ("boxing") 197 public void checkInteger00() { 198 checkSimpleEntry(sessionContext, "int00", intInjection, ENTRY_INTEGER); 199 } 200 201 204 @SuppressWarnings ("boxing") 205 public void checkBoolean00() { 206 checkSimpleEntry(sessionContext, "bol00", bolInjection, ENTRY_BOOLEAN); 207 } 208 209 212 @SuppressWarnings ("boxing") 213 public void checkDouble00() { 214 checkSimpleEntry(sessionContext, "dbl00", dblInjection, ENTRY_DOUBLE); 215 } 216 217 220 @SuppressWarnings ("boxing") 221 public void checkByte00() { 222 checkSimpleEntry(sessionContext, "bte00", bteInjection, ENTRY_BYTE); 223 } 224 225 228 @SuppressWarnings ("boxing") 229 public void checkShort00() { 230 checkSimpleEntry(sessionContext, "shr00", shrInjection, ENTRY_SHORT); 231 } 232 233 236 @SuppressWarnings ("boxing") 237 public void checkLong00() { 238 checkSimpleEntry(sessionContext, "lng00", lngInjection, ENTRY_LONG); 239 } 240 241 244 @SuppressWarnings ("boxing") 245 public void checkFloat00() { 246 checkSimpleEntry(sessionContext, this.getClass().getName().toString()+"/"+ "fltInjection", fltInjection, ENTRY_FLOAT); 247 } 248 } 249 | Popular Tags |