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