javax.ejb

Interface EJB

public interface EJB

The EJB annotation.

Method Summary

Class<T>
beanInterface()
String
beanName()
String
mappedName()
String
name()

Method Details

beanInterface

public Class<T> beanInterface()
            throws java.lang.Object.class
Usages and Demos :

View More Examples of beanInterface()
   1: 
   2: import javax.ejb.EJB;
   3:         ...
   4: import javax.ejb.EJBHome;
   5:         ...
   6: import javax.ejb.EJBLocalHome;
   7: import javax.ejb.EJBObject;
   8:         ...
   9: 
  10:             Class beanInterface = (ejbAn.beanInterface() == Object.class) ?

View Full Code Here

beanName

public String beanName()
            throws ""

mappedName

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

View More Examples of mappedName()
   1: import javax.annotation.*;
   2: import javax.ejb.EJB;
   3:         ...
   4: import javax.ejb.EJBs;
   5: import javax.naming.*;
   6:         ...
   7: 
   8:     EJB ejb = (EJB) type.getAnnotation(EJB.class);
   9: 
  10:         ...
  11:   {
  12:     String mappedName = ref.mappedName();

View Full Code Here

name

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

View More Examples of name()
   1: package org.springframework.jee.ejb;
   2: 
   3:         ...
   4: import javax.ejb.EJB;
   5: 
   6:         ...
   7: 
   8:     private static final String INJECTION_NAME = "@EJB";
   9: 
  10:         ...
  11:     public EjbReferenceInfo(EJB annotation) {
  12:         if (StringUtils.hasText(annotation.name()))

View Full Code Here
   1: 
   2: import javax.ejb.EJB;
   3:         ...
   4: import javax.ejb.EJBHome;
   5:         ...
   6: import javax.ejb.EJBLocalHome;
   7: import javax.ejb.EJBObject;
   8:         ...
   9: 
  10:             String logicalName = ejbAn.name();

View Full Code Here
   1: import javax.annotation.*;
   2: import javax.ejb.EJB;
   3:         ...
   4: import javax.ejb.EJBs;
   5: import javax.naming.*;
   6:         ...
   7: 
   8:     EJB ejb = (EJB) type.getAnnotation(EJB.class);
   9: 
  10:         ...
  11:       
  12:       if ("".equals(ejb.name()))

View Full Code Here