1 22 package org.jboss.ejb3.stateful; 23 24 import java.lang.reflect.Method ; 25 import org.jboss.ejb3.Container; 26 import org.jboss.ejb3.LocalProxy; 27 28 34 public class StatefulLocalHomeProxy extends LocalProxy 35 { 36 protected StatefulLocalHomeProxy() 37 { 38 } 39 40 public StatefulLocalHomeProxy(Container container) 41 { 42 super(container); 43 } 44 45 public Object invoke(Object proxy, Method method, Object [] args) 46 throws Throwable 47 { 48 StatefulContainer sfsb = (StatefulContainer) container; 49 return sfsb.localHomeInvoke(method, args); 50 } 51 52 public Object getAsynchronousProxy(Object proxy) 53 { 54 throw new RuntimeException ("NOT AVAILABLE FOR HOME PROXIES"); 55 } 56 57 public String toString() 58 { 59 return container.getObjectName().getCanonicalName() + ": Home Proxy"; 60 } 61 62 } 63 | Popular Tags |