/** * * @return the bean class of this container * @deprecated use getBeanClass */ public Class<?> getClazz() { return getBeanClass(); }
/** * Helper method to load classes. If no class name is specified * the bean class is returned. * * @param container The EJB container * @param name The name of the class or null for the bean class * @return The resulting <tt>Class</tt> object or the bean class */ private Class<?> loadClass(EJBContainer container, String name) { if(name == null) return container.getBeanClass(); try { return di.getClassLoader().loadClass(name); } catch(ClassNotFoundException e) { // TODO: what shall be the proper exception throw new RuntimeException(e); } }
private static void checkForJndiNamingConflict(EJBContainer container) { if (container.getAnnotation(Local.class) != null) { JBossSessionBeanMetaData smd = (JBossSessionBeanMetaData)container.getXml(); String localJndiName = smd.getLocalJndiName(); String remoteJndiName = smd.getJndiName(); String ejbName = container.getEjbName(); if (localJndiName != null) { if (localJndiName.equals(remoteJndiName) || localJndiName.startsWith(remoteJndiName + "/")) throw new javax.ejb.EJBException("Conflict between default jndi name " + remoteJndiName + " for both remote and local for ejb-name:" + ejbName + ", bean class=" + container.getBeanClass() + "\nLocal JNDI Name: " + localJndiName + "\nRemote JNDI Name: " + remoteJndiName); } } }
Map<AccessibleObject, Injector> tmp = InjectionUtil.processAnnotations(this, handlers, getBeanClass()); injectors.addAll(tmp.values());
Method timeoutMethod = this.getTimeoutMethod(timeoutMethodMetaData, container.getBeanClass()); if (timeoutMethod == null)