Examples of beanName()


Examples of com.tobedevoured.modelcitizen.spring.annotation.SpringBlueprint.beanName()

            if ( beanClass.equals( NotSet.class) ) {
                beanClass = erector.getTarget();
            }

            try {
                if ( StringUtils.isNotBlank( springBlueprint.beanName() ) ) {
                    logger.debug( "Retrieving model from Spring [{},{}]", springBlueprint.beanName(), beanClass );
                    return applicationContext.getBean( springBlueprint.beanName(), beanClass );
                } else {
                    logger.debug( "Retrieving model from Spring [{}]", beanClass );
                    return applicationContext.getBean( beanClass );
View Full Code Here

Examples of javax.annotation.Resource.beanName()

            if(intf == null)
            {
                intf = resourceReference.getResourceType().getName();
            }
           
            if(intf == null &&  annotation.beanName() == null)
            {
                if(logger.wblWillLogWarn())
                {
                    logger.warn("To inject @EJBs into the managed beans you have to give @EJB(beanName), " +
                            "trying to get inject with @EJB(name) where name is the internal JNDI name of the OpenEJB Bean");
View Full Code Here

Examples of javax.ejb.EJB.beanName()

      {
         throw new IllegalArgumentException("Injection point represents a method which doesn't follow JavaBean conventions (must have exactly one parameter) " + injectionPoint);
      }
      EJB annotation = injectionPoint.getAnnotated().getAnnotation(EJB.class);
      // Get properties from the annotation
      String beanName = annotation.beanName();
      String beanInterface = annotation.beanInterface().getName();

      // Supply beanInterface from reflection if not explicitly-defined
      if (beanInterface == null || beanInterface.equals(Object.class.getName()))
      {
View Full Code Here

Examples of javax.ejb.EJB.beanName()

         if (!method.getName().startsWith("set"))
            throw new RuntimeException("@EJB can only be used with a set method: " + method);
         String encName = getEncName(ref, method);
         if (!container.getEncInjectors().containsKey(encName))
         {
            ejbRefEncInjector(ref.mappedName(), encName, method.getName().substring(0), method.getParameterTypes()[0], ref.beanName(), "@EJB", container);
           
            if (isIgnoreDependency(container, ref))
               log.debug("IGNORING <ejb-ref> DEPENDENCY: " + encName);
            else
               ejbRefDependency(ref.mappedName(), ref.beanName(), container, method.getParameterTypes()[0], "@EJB", encName);
View Full Code Here

Examples of javax.ejb.EJB.beanName()

            ejbRefEncInjector(ref.mappedName(), encName, method.getName().substring(0), method.getParameterTypes()[0], ref.beanName(), "@EJB", container);
           
            if (isIgnoreDependency(container, ref))
               log.debug("IGNORING <ejb-ref> DEPENDENCY: " + encName);
            else
               ejbRefDependency(ref.mappedName(), ref.beanName(), container, method.getParameterTypes()[0], "@EJB", encName);
         }

         super.handleMethodAnnotations(method, container, injectors);
      }
   }
View Full Code Here

Examples of javax.ejb.EJB.beanName()

            if(mappedName == null)
            {
               EndpointInfo info = null;
               String link = null;
              
               if(ref.beanName().length() > 0)
                  link = ref.beanName();
              
               if(link != null)
                  info = resolver.getEndpointInfo(link, EndpointType.EJB, vfsContext);
               if(info == null)
View Full Code Here

Examples of javax.ejb.EJB.beanName()

            {
               EndpointInfo info = null;
               String link = null;
              
               if(ref.beanName().length() > 0)
                  link = ref.beanName();
              
               if(link != null)
                  info = resolver.getEndpointInfo(link, EndpointType.EJB, vfsContext);
               if(info == null)
                  info = resolver.getEndpointInfo(field.getType(), EndpointType.EJB, vfsContext);
View Full Code Here

Examples of javax.ejb.EJB.beanName()

           
            if (isIgnoreDependency(container, ref))
               log.debug("IGNORING <ejb-ref> DEPENDENCY: " + encName);
            else
            {
               ejbRefDependency(mappedName, ref.beanName(), container, field.getType(), "@EJB", encName);
            }
            ejbRefEncInjector(mappedName, encName, field.getName(), field.getType(), ref.beanName(), "@EJB", container);
         }
         super.handleFieldAnnotations(field, container, injectors);
      }
View Full Code Here

Examples of javax.ejb.EJB.beanName()

               log.debug("IGNORING <ejb-ref> DEPENDENCY: " + encName);
            else
            {
               ejbRefDependency(mappedName, ref.beanName(), container, field.getType(), "@EJB", encName);
            }
            ejbRefEncInjector(mappedName, encName, field.getName(), field.getType(), ref.beanName(), "@EJB", container);
         }
         super.handleFieldAnnotations(field, container, injectors);
      }
   }
View Full Code Here

Examples of javax.ejb.EJB.beanName()

            ServiceController<?> controller = serviceRegistry.getRequiredService(ejbBindInfo.getBinderServiceName());
            ManagedReferenceFactory factory = (ManagedReferenceFactory) controller.getValue();
            return factory.getReference().getInstance();
        } else {
            final Set<ViewDescription> viewService;
            if (ejb.beanName().isEmpty()) {
                if (ejb.beanInterface() != Object.class) {
                    viewService = applicationDescription.getComponentsForViewName(ejb.beanInterface().getName());
                } else {
                    viewService = applicationDescription.getComponentsForViewName(getType(injectionPoint.getType()).getName());
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.