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

x33g5p2x  于2022-01-30 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(131)

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

Stateful.description介绍

暂无

代码示例

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

protected SessionBeanMetaData create(Class<?> beanClass, Stateful annotation)
  {
   return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description());
  }
}

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

protected JBossSessionBeanMetaData create(Class<?> beanClass, Stateful annotation)
{
 return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description());
}

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

protected SessionBeanMetaData create(Class<?> beanClass, Stateful annotation)
{
 return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description());
}

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

/**
   * 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);
  }
}

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

doDescriptionProcessing(sful.description(), ejbDesc);
doMappedNameProcessing(sful.mappedName(), ejbDesc);

相关文章