javax.ejb

Interface Stateless

public interface Stateless

The Stateless annotation.

Method Summary

String
description()
String
mappedName()
String
name()

Method Details

description

public String description()
            throws ""

mappedName

public String mappedName()
            throws ""

name

public String name()
            throws ""
Usages and Demos :

View More Examples of name()
   1: import javax.ejb.Stateful;
   2: import javax.ejb.Stateless;
   3: 
   4:         ...
   5:     private String findComponentName(Class ejbClass) {
   6:         Stateless stateless = (Stateless) ejbClass.getAnnotation(Stateless.class);
   7:         ...
   8:         if (stateless != null && stateless.name().length() > 0) {
   9:         ...
  10:             return stateless.name();

View Full Code Here
   1: 
   2: import javax.ejb.Stateless;
   3: 
   4:         ...
   5:     public Class<? extends Annotation> getAnnotationType() {
   6:         return Stateless.class;
   7:     }
   8:         ...
   9:     protected String getAnnotatedName(Annotation annotation) {
  10:         Stateless slAn = (Stateless)annotation;
  11:         ...
  12:         return slAn.name();

View Full Code Here
   1: 
   2:     if (type.isAnnotationPresent(Stateless.class)) {
   3:         ...
   4:       Stateless stateless = (Stateless) type.getAnnotation(Stateless.class);
   5: 
   6:         ...
   7:       if (getEJBName() == null && ! "".equals(stateless.name()))
   8:         ...
   9:     setEJBName(stateless.name());

View Full Code Here