1 17 package org.apache.geronimo.j2ee.deployment; 18 19 import java.net.URI ; 20 import javax.naming.Reference ; 21 import javax.management.ObjectName ; 22 23 import org.apache.geronimo.common.DeploymentException; 24 import org.apache.geronimo.gbean.GBeanInfo; 25 import org.apache.geronimo.gbean.GBeanInfoBuilder; 26 27 30 public class UnavailableEJBReferenceBuilder implements EJBReferenceBuilder { 31 32 public Reference createEJBLocalReference(String objectName, boolean isSession, String localHome, String local) throws DeploymentException { 33 throw new DeploymentException("EJB references are unavailable in this configuration"); 34 } 35 36 public Reference createEJBRemoteReference(String objectName, boolean isSession, String home, String remote) throws DeploymentException { 37 throw new DeploymentException("EJB references are unavailable in this configuration"); 38 } 39 40 public Reference createCORBAReference(URI corbaURL, String objectName, ObjectName containerName, String home) throws DeploymentException { 41 throw new DeploymentException("EJB references are unavailable in this configuration"); 42 } 43 44 public Object createHandleDelegateReference() { 45 return null; 46 } 47 48 public static final GBeanInfo GBEAN_INFO; 49 50 static { 51 GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder(UnavailableEJBReferenceBuilder.class); 52 infoBuilder.addInterface(EJBReferenceBuilder.class); 53 GBEAN_INFO = infoBuilder.getBeanInfo(); 54 } 55 56 public static GBeanInfo getGBeanInfo() { 57 return GBEAN_INFO; 58 } 59 } 60 | Popular Tags |