javax.ejb.Stateless.description()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中javax.ejb.Stateless.description()方法的一些代码示例,展示了Stateless.description()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stateless.description()方法的具体详情如下:
包路径:javax.ejb.Stateless
类名称:Stateless
方法名:description

Stateless.description介绍

暂无

代码示例

代码示例来源:origin: org.jboss/jboss-metadata

  1. protected SessionBeanMetaData create(Class<?> beanClass, Stateless annotation)
  2. {
  3. return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description());
  4. }
  5. }

代码示例来源:origin: org.jboss.ws/jbossws-jboss510-metadata

  1. protected JBossSessionBeanMetaData create(Class<?> beanClass, Stateless annotation)
  2. {
  3. return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description());
  4. }

代码示例来源:origin: org.jboss.ws/jbossws-jboss510-metadata

  1. protected SessionBeanMetaData create(Class<?> beanClass, Stateless annotation)
  2. {
  3. return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description());
  4. }

代码示例来源:origin: org.glassfish.main.ejb/ejb-container

  1. /**
  2. * Set Annotation information to Descriptor.
  3. * This method will also be invoked for an existing descriptor with
  4. * annotation as user may not specific a complete xml.
  5. * @param ejbDesc
  6. * @param ainfo
  7. * @return HandlerProcessingResult
  8. */
  9. protected HandlerProcessingResult setEjbDescriptorInfo(
  10. EjbDescriptor ejbDesc, AnnotationInfo ainfo)
  11. throws AnnotationProcessorException {
  12. EjbSessionDescriptor ejbSessionDesc = (EjbSessionDescriptor)ejbDesc;
  13. // set session bean type in case it wasn't set in a sparse ejb-jar.xml.
  14. if( !ejbSessionDesc.isSessionTypeSet() ) {
  15. ejbSessionDesc.setSessionType(EjbSessionDescriptor.STATELESS);
  16. }
  17. Stateless sless = (Stateless) ainfo.getAnnotation();
  18. doDescriptionProcessing(sless.description(), ejbDesc);
  19. doMappedNameProcessing(sless.mappedName(), ejbDesc);
  20. return setBusinessAndHomeInterfaces(ejbDesc, ainfo);
  21. }
  22. }

代码示例来源:origin: org.glassfish.ejb/ejb-container

  1. /**
  2. * Set Annotation information to Descriptor.
  3. * This method will also be invoked for an existing descriptor with
  4. * annotation as user may not specific a complete xml.
  5. * @param ejbDesc
  6. * @param ainfo
  7. * @return HandlerProcessingResult
  8. */
  9. protected HandlerProcessingResult setEjbDescriptorInfo(
  10. EjbDescriptor ejbDesc, AnnotationInfo ainfo)
  11. throws AnnotationProcessorException {
  12. EjbSessionDescriptor ejbSessionDesc = (EjbSessionDescriptor)ejbDesc;
  13. // set session bean type in case it wasn't set in a sparse ejb-jar.xml.
  14. if( !ejbSessionDesc.isSessionTypeSet() ) {
  15. ejbSessionDesc.setSessionType(EjbSessionDescriptor.STATELESS);
  16. }
  17. Stateless sless = (Stateless) ainfo.getAnnotation();
  18. doDescriptionProcessing(sless.description(), ejbDesc);
  19. doMappedNameProcessing(sless.mappedName(), ejbDesc);
  20. return setBusinessAndHomeInterfaces(ejbDesc, ainfo);
  21. }
  22. }

相关文章