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 import org.objectweb.easybeans.tests.common.ejbs.base.simpleentry.EBaseSimpleEnvEntry00; 36 37 38 44 @Stateless (name="SLSBSimpleEnvEntryInheritance") 45 @Remote (ItfSimpleEnvEntry.class) 46 public class SLSBSimpleEnvEntryInheritance extends EBaseSimpleEnvEntry00{ 47 48 51 @Resource 52 private SessionContext sessionContext; 53 54 57 @Resource(name = "str01") 58 private String strInjection; 59 60 63 @Resource(name = "chr01") 64 public char chrInjection; 65 66 69 @Resource(name = "bol00") 70 public boolean bolInjection; 71 72 75 private byte bteInjection; 76 77 80 private short shrInjection; 81 82 86 @Resource(name = "bte01") 87 private void setBteInjection(final byte value){ 88 bteInjection = value; 89 } 90 91 95 @Resource(name = "shr01") 96 protected void setShrInjection(final short value){ 97 shrInjection = value; 98 } 99 100 103 @Override 104 public void checkString00() { 105 checkSimpleEntry(sessionContext, "str01", strInjection, ENTRY_STRING_1); 106 super.checkString00(); 107 } 108 109 112 @SuppressWarnings ("boxing") 113 @Override 114 public void checkCharacter00(){ 115 checkSimpleEntry(sessionContext, "chr01", chrInjection, ENTRY_CHARACTER_1); 116 super.checkCharacter00(); 117 } 118 119 122 @SuppressWarnings ("boxing") 123 @Override 124 public void checkInteger00(){ 125 super.checkInteger00(); 126 } 127 128 131 @SuppressWarnings ("boxing") 132 @Override 133 public void checkBoolean00(){ 134 checkSimpleEntry(sessionContext, "bol00", bolInjection, ENTRY_BOOLEAN); 135 super.checkBoolean00(); 136 } 137 138 141 @SuppressWarnings ("boxing") 142 @Override 143 public void checkDouble00(){ 144 super.checkDouble00(); 145 } 146 147 150 @SuppressWarnings ("boxing") 151 @Override 152 public void checkByte00(){ 153 checkSimpleEntry(sessionContext, "bte01", bteInjection, ENTRY_BYTE_1); 154 super.checkByte00(); 155 } 156 157 160 @SuppressWarnings ("boxing") 161 @Override 162 public void checkShort00(){ 163 checkSimpleEntry(sessionContext, "shr01", shrInjection, ENTRY_SHORT_1); 164 super.checkShort00(); 165 } 166 167 } 168 | Popular Tags |