FileDocCategorySizeDatePackage
EJB3Util.javaAPI DocJBoss 4.2.13298Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3

EJB3Util

public class EJB3Util extends Object
Comment
author
Bill Burke
version
$Revision: 57207 $

Fields Summary
Constructors Summary
Methods Summary
public static java.lang.StringgetAspectDomain(javassist.bytecode.AnnotationsAttribute visible, java.lang.String defaultContainerName)

      if (visible != null )
      {
         Annotation dinfo = visible.getAnnotation(org.jboss.annotation.ejb.AspectDomain.class
                                      .getName());
         if (dinfo != null)
         {
            StringMemberValue dmv = (StringMemberValue) dinfo
                    .getMemberValue("value");
            if (dmv != null)
            {
               return dmv.getValue();
            }
         }
      }
      
      return defaultContainerName;
   
public static javax.naming.InitialContextgetInitialContext(java.util.Hashtable props)

      InitialContext ctx = null;
      if (props != null)
      {
         ctx = new InitialContext(props);
      }
      else ctx = new InitialContext();
      return ctx;
   
public static booleanisConsumer(javassist.bytecode.AnnotationsAttribute group)

      return group.getAnnotation(org.jboss.annotation.ejb.Consumer.class.getName()) != null;
   
public static booleanisEntity(javassist.bytecode.AnnotationsAttribute group)

      return group.getAnnotation(javax.persistence.Entity.class.getName()) != null;
   
public static booleanisMessageDriven(javassist.bytecode.AnnotationsAttribute group)

      return group.getAnnotation(javax.ejb.MessageDriven.class.getName()) != null;
   
public static booleanisService(javassist.bytecode.AnnotationsAttribute group)

      return group.getAnnotation(org.jboss.annotation.ejb.Service.class.getName()) != null;
   
public static booleanisStatefulSession(javassist.bytecode.AnnotationsAttribute group)

      return group.getAnnotation(javax.ejb.Stateful.class.getName()) != null;
   
public static booleanisStateless(javassist.bytecode.AnnotationsAttribute group)

      return group.getAnnotation(javax.ejb.Stateless.class.getName()) != null;