javax.ejb

Interface Stateful

public interface Stateful

The Stateful 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: 
   2: import javax.ejb.Stateful;
   3: import javax.ejb.Stateless;
   4:         ...
   5:         Stateless stateless = (Stateless) ejbClass.getAnnotation(Stateless.class);
   6:         if (stateless != null && stateless.name().length() > 0) {
   7:         ...
   8:             return stateless.name();
   9:         }
  10:         ...
  11: 
  12:         Stateful stateful = (Stateful) ejbClass.getAnnotation(Stateful.class);

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

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

View Full Code Here