protected SessionBeanMetaData create(Class<?> beanClass, Stateless annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); } }
protected JBossSessionBeanMetaData create(Class<?> beanClass, Stateless annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); }
protected SessionBeanMetaData create(Class<?> beanClass, Stateless 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.STATELESS); } Stateless sless = (Stateless) ainfo.getAnnotation(); doDescriptionProcessing(sless.description(), ejbDesc); doMappedNameProcessing(sless.mappedName(), ejbDesc); return setBusinessAndHomeInterfaces(ejbDesc, ainfo); } }
/** * 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.STATELESS); } Stateless sless = (Stateless) ainfo.getAnnotation(); doDescriptionProcessing(sless.description(), ejbDesc); doMappedNameProcessing(sless.mappedName(), ejbDesc); return setBusinessAndHomeInterfaces(ejbDesc, ainfo); } }
sessionBean.setSessionType(SessionType.STATELESS); if (stateless.mappedName() != null) { sessionBean.setMappedName(stateless.mappedName());
sessionBean.setSessionType(SessionType.STATELESS); if (stateless.mappedName() != null) { sessionBean.setMappedName(stateless.mappedName());
sessionBean.setSessionType(SessionType.STATELESS); if (stateless.mappedName() != null) { sessionBean.setMappedName(stateless.mappedName());