本文整理了Java中javax.ejb.Stateful.name()
方法的一些代码示例,展示了Stateful.name()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Stateful.name()
方法的具体详情如下:
包路径:javax.ejb.Stateful
类名称:Stateful
方法名:name
暂无
代码示例来源:origin: org.glassfish.ejb/ejb-container
/**
* Return the name attribute of given annotation.
* @param annotation
* @return name
*/
protected String getAnnotatedName(Annotation annotation) {
Stateful sfAn = (Stateful)annotation;
return sfAn.name();
}
代码示例来源:origin: org.glassfish.main.ejb/ejb-container
/**
* Return the name attribute of given annotation.
* @param annotation
* @return name
*/
protected String getAnnotatedName(Annotation annotation) {
Stateful sfAn = (Stateful)annotation;
return sfAn.name();
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
private String getEjbName(Stateful stateful, Class<?> beanClass) {
String ejbName = stateful.name().length() == 0 ? beanClass.getSimpleName() : stateful.name();
return ejbName;
}
代码示例来源:origin: org.apache.tomee/openejb-core
private String getEjbName(final Stateful stateful, final Class<?> beanClass) {
return stateful.name().isEmpty() ? beanClass.getSimpleName() : stateful.name();
}
代码示例来源:origin: org.apache.openejb/openejb-core
private String getEjbName(final Stateful stateful, final Class<?> beanClass) {
return stateful.name().isEmpty() ? beanClass.getSimpleName() : stateful.name();
}
代码示例来源:origin: org.glassfish.tyrus/tyrus-container-glassfish-ejb
private String getName(Class<?> c) {
String name;
if (c.isAnnotationPresent(Singleton.class)) {
name = c.getAnnotation(Singleton.class).name();
} else if (c.isAnnotationPresent(Stateful.class)) {
name = c.getAnnotation(Stateful.class).name();
} else if (c.isAnnotationPresent(Stateless.class)) {
name = c.getAnnotation(Stateless.class).name();
} else {
return null;
}
if (name == null || name.length() == 0) {
name = c.getSimpleName();
}
return name;
}
代码示例来源:origin: eclipse-ee4j/tyrus
private String getName(Class<?> c) {
String name;
if (c.isAnnotationPresent(Singleton.class)) {
name = c.getAnnotation(Singleton.class).name();
} else if (c.isAnnotationPresent(Stateful.class)) {
name = c.getAnnotation(Stateful.class).name();
} else if (c.isAnnotationPresent(Stateless.class)) {
name = c.getAnnotation(Stateless.class).name();
} else {
return null;
}
if (name == null || name.length() == 0) {
name = c.getSimpleName();
}
return name;
}
代码示例来源: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 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.apache.openejb/openejb-core
case STATEFUL: {
final Stateful annotation = clazz.getAnnotation(Stateful.class);
if (annotation != null && specified(annotation.name())) {
return annotation.name();
代码示例来源:origin: org.apache.tomee/openejb-core
case STATEFUL: {
final Stateful annotation = clazz.getAnnotation(Stateful.class);
if (annotation != null && specified(annotation.name())) {
return annotation.name();
代码示例来源:origin: org.seasar.container/s2-tiger
if (sfsb != null) {
stateful = true;
name = sfsb.name();
代码示例来源:origin: com.caucho/resin
Stateful stateful = ejbClass.getAnnotation(Stateful.class);
if (getEJBName() == null && !"".equals(stateful.name()))
setEJBName(stateful.name());
代码示例来源:origin: net.oneandone/ejb-cdi-unit
processClass(builder, stateful.name(), false, scopeIsPresent);
modified = true;
代码示例来源:origin: com.caucho/resin
if (! "".equals(stateful.name()) && stateful.name() != null)
bean.setEJBName(stateful.name());
代码示例来源:origin: org.jglue.cdi-unit/cdi-unit
processClass(builder, stateful.name());
modified = true;
代码示例来源:origin: BrynCooke/cdi-unit
processClass(builder, stateful.name());
modified = true;
内容来源于网络,如有侵权,请联系作者删除!