Package org.jboss.metadata.javaee.spec

Examples of org.jboss.metadata.javaee.spec.AnnotatedEJBReferenceMetaData


      {
         //
         AnnotatedEJBReferencesMetaData amds = container.getEnvironmentRefGroup().getAnnotatedEjbReferences();
         if(amds != null)
         {
            AnnotatedEJBReferenceMetaData amd = amds.get(encName);
            if(amd == null && fieldName != null)
               amd = amds.get(fieldName);
            if(amd != null)
            {
               mappedName = amd.getMappedName();
               if(mappedName == null)
                  mappedName = amd.getResolvedJndiName();
            }
         }
      }

      EncInjector injector = null;
View Full Code Here


     
      // EJBTHREE-1289: find a resolved jndi name
      AnnotatedEJBReferencesMetaData amds = webDD.getJndiEnvironmentRefsGroup().getAnnotatedEjbReferences();
      if(amds != null)
      {
         AnnotatedEJBReferenceMetaData amd = amds.get(lookupName);
         if (amd == null && fieldName != null)
         {
            lookupName = fieldName;
            amd = amds.get(lookupName);
         }
         if (amd != null)
         {
            mappedName = amd.getMappedName();
            if (mappedName == null)
               mappedName = amd.getResolvedJndiName();
         }
      }
     
      // The MappedDeploymentEndpointResolver should have put resolvedJndiName everywhere.
      // If no mappedName is known by now, we have a bug.
View Full Code Here

      process(refs, element, annotation);
   }

   protected void process(AnnotatedEJBReferencesMetaData refs, E element, EJB annotation)
   {
      AnnotatedEJBReferenceMetaData ref = createEJB(annotation, element);
      refs.add(ref);     
   }
View Full Code Here

    */
   protected abstract Class getType(E element);

   protected AnnotatedEJBReferenceMetaData createEJB(EJB annotation, E element)
   {
      AnnotatedEJBReferenceMetaData ref = new AnnotatedEJBReferenceMetaData();
      if(annotation.name().length() > 0)
         ref.setEjbRefName(annotation.name());
      else
         ref.setEjbRefName(getName(element));
      if(annotation.beanInterface() != Object.class)
         ref.setBeanInterface(annotation.beanInterface());
      else
         ref.setBeanInterface(getType(element));
      if(annotation.description().length() > 0)
      {
         DescriptionImpl description = new DescriptionImpl();
         description.setDescription(annotation.description());
         DescriptionsImpl descriptions = new DescriptionsImpl();
         descriptions.add(description);
         ref.setDescriptions(descriptions);
      }
      if(annotation.beanName().length() > 0)
         ref.setLink(annotation.beanName());
      if(annotation.mappedName().length() > 0)
         ref.setMappedName(annotation.mappedName());

      String name = ProcessorUtils.getName(element);
      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(name, element);
      if(injectionTargets != null)
         ref.setInjectionTargets(injectionTargets);

      return ref;
   }
View Full Code Here

      process(refs, element, annotation);
   }

   protected void process(AnnotatedEJBReferencesMetaData refs, E element, EJB annotation)
   {
      AnnotatedEJBReferenceMetaData ref = createEJB(annotation, element);
      refs.add(ref);     
   }
View Full Code Here

    */
   protected abstract Class getType(E element);

   protected AnnotatedEJBReferenceMetaData createEJB(EJB annotation, E element)
   {
      AnnotatedEJBReferenceMetaData ref = new AnnotatedEJBReferenceMetaData();
      if(annotation.name().length() > 0)
         ref.setEjbRefName(annotation.name());
      else
         ref.setEjbRefName(getName(element));
      if(annotation.beanInterface() != Object.class)
         ref.setBeanInterface(annotation.beanInterface());
      else
         ref.setBeanInterface(getType(element));
      if(annotation.description().length() > 0)
      {
         DescriptionImpl description = new DescriptionImpl();
         description.setDescription(annotation.description());
         DescriptionsImpl descriptions = new DescriptionsImpl();
         descriptions.add(description);
         ref.setDescriptions(descriptions);
      }
      if(annotation.beanName().length() > 0)
         ref.setLink(annotation.beanName());
      if(annotation.mappedName().length() > 0)
         ref.setMappedName(annotation.mappedName());

      return ref;
   }
View Full Code Here

     
      // EJBTHREE-1289: find a resolved jndi name
      AnnotatedEJBReferencesMetaData amds = webDD.getJndiEnvironmentRefsGroup().getAnnotatedEjbReferences();
      if(amds != null)
      {
         AnnotatedEJBReferenceMetaData amd = amds.get(lookupName);
         if (amd == null && fieldName != null)
         {
            lookupName = fieldName;
            amd = amds.get(lookupName);
         }
         if (amd != null)
         {
            mappedName = amd.getMappedName();
            if (mappedName == null)
               mappedName = amd.getResolvedJndiName();
         }
      }
     
      // The MappedDeploymentEndpointResolver should have put resolvedJndiName everywhere.
      // If no mappedName is known by now, we have a bug.
View Full Code Here

      {
         //
         AnnotatedEJBReferencesMetaData amds = container.getEnvironmentRefGroup().getAnnotatedEjbReferences();
         if(amds != null)
         {
            AnnotatedEJBReferenceMetaData amd = amds.get(lookupName);
            if (amd == null && fieldName != null)
            {
               lookupName = fieldName;
               amd = amds.get(lookupName);
            }
            if (amd != null)
            {
               mappedName = amd.getMappedName();
               if (mappedName == null)
                  mappedName = amd.getResolvedJndiName();
            }
         }
      }

      // The MappedDeploymentEndpointResolver should have put resolvedJndiName everywhere.
View Full Code Here

     
      // EJBTHREE-1289: find a resolved jndi name
      AnnotatedEJBReferencesMetaData amds = container.getEnvironmentRefGroup().getAnnotatedEjbReferences();
      if(amds != null)
      {
         AnnotatedEJBReferenceMetaData amd = amds.get(lookupName);
         if (amd == null && fieldName != null)
         {
            lookupName = fieldName;
            amd = amds.get(lookupName);
         }
         if (amd != null)
         {
            mappedName = amd.getMappedName();
            if (mappedName == null)
               mappedName = amd.getResolvedJndiName();
         }
      }
     
      // The MappedDeploymentEndpointResolver should have put resolvedJndiName everywhere.
      // If no mappedName is known by now, we have a bug.
View Full Code Here

      {
         //
         AnnotatedEJBReferencesMetaData amds = container.getEnvironmentRefGroup().getAnnotatedEjbReferences();
         if(amds != null)
         {
            AnnotatedEJBReferenceMetaData amd = amds.get(lookupName);
            if (amd == null && fieldName != null)
            {
               lookupName = fieldName;
               amd = amds.get(lookupName);
            }
            if (amd != null)
            {
               mappedName = amd.getMappedName();
               if (mappedName == null)
                  mappedName = amd.getResolvedJndiName();
            }
         }
      }

      // The MappedDeploymentEndpointResolver should have put resolvedJndiName everywhere.
View Full Code Here

TOP

Related Classes of org.jboss.metadata.javaee.spec.AnnotatedEJBReferenceMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.