protected SessionBeanMetaData create(Class<?> beanClass, Stateful annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); } }
protected JBossSessionBeanMetaData create(Class<?> beanClass, Stateful annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); }
protected SessionBeanMetaData create(Class<?> beanClass, Stateful annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); }
/** * Set Annotation information to Descriptor. * This method will also be invoked for an existing descriptor with * annotation as user may not specific a complete xml. * @param ejbDesc * @param ainfo * @return HandlerProcessingResult */ protected HandlerProcessingResult setEjbDescriptorInfo( EjbDescriptor ejbDesc, AnnotationInfo ainfo) throws AnnotationProcessorException { EjbSessionDescriptor ejbSessionDesc = (EjbSessionDescriptor)ejbDesc; // set session bean type in case it wasn't set in a sparse ejb-jar.xml. if( !ejbSessionDesc.isSessionTypeSet() ) { ejbSessionDesc.setSessionType(EjbSessionDescriptor.STATEFUL); } Stateful sful = (Stateful) ainfo.getAnnotation(); doDescriptionProcessing(sful.description(), ejbDesc); doMappedNameProcessing(sful.mappedName(), ejbDesc); return setBusinessAndHomeInterfaces(ejbDesc, ainfo); } }
if (stateful.mappedName() != null) { sessionBean.setMappedName(stateful.mappedName());
doMappedNameProcessing(sful.mappedName(), ejbDesc);
if (stateful.mappedName() != null) { sessionBean.setMappedName(stateful.mappedName());
if (stateful.mappedName() != null) { sessionBean.setMappedName(stateful.mappedName());