1 25 26 package org.objectweb.easybeans.container.session; 27 28 import javax.ejb.EJBLocalObject ; 29 import javax.ejb.EJBObject ; 30 import javax.ejb.SessionContext ; 31 import javax.transaction.Transaction ; 32 33 import org.objectweb.easybeans.api.bean.EasyBeansSB; 34 import org.objectweb.easybeans.api.container.EZBSessionContext; 35 import org.objectweb.easybeans.container.EasyBeansEJBContext; 36 37 42 public class EasyBeansSessionContext<BeanType extends EasyBeansSB> extends EasyBeansEJBContext<BeanType> implements 43 EZBSessionContext<BeanType>, SessionContext { 44 45 48 private BeanType bean = null; 49 50 53 private Transaction beanTransaction = null; 54 55 59 public Transaction getBeanTransaction() { 60 return beanTransaction; 61 } 62 63 67 public void setBeanTransaction(final Transaction beanTransaction) { 68 this.beanTransaction = beanTransaction; 69 } 70 71 75 @Override 76 public BeanType getBean() { 77 return this.bean; 78 } 79 80 84 public EasyBeansSessionContext(final BeanType bean) { 85 super(bean.getEasyBeansFactory()); 86 this.bean = bean; 87 } 88 89 102 public EJBLocalObject getEJBLocalObject() throws java.lang.IllegalStateException { 103 throw new UnsupportedOperationException (); 104 } 105 106 119 public EJBObject getEJBObject() throws java.lang.IllegalStateException { 120 throw new UnsupportedOperationException (); 121 } 122 123 132 public javax.xml.rpc.handler.MessageContext getMessageContext() throws java.lang.IllegalStateException { 133 throw new UnsupportedOperationException ("Not implemented"); 134 } 135 136 147 public <T> T getBusinessObject(final Class <T> businessInterface) throws IllegalStateException { 148 throw new UnsupportedOperationException ("Not implemented"); 149 } 150 151 159 public Class getInvokedBusinessInterface() throws IllegalStateException { 160 throw new UnsupportedOperationException ("Not implemented"); 161 } 162 163 } 164 | Popular Tags |